PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • How to handle the menu options?
  • Adding a menu option
  • Linking a menu option to a preset action
  • Adding a separator
  • Adding a sub-menu
  • Deleting a menu option
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
WINDEV and WINDEV Mobile manage two types of menus:
  • Universal Windows 10 AppAndroid the main menus of windows.
    A main menu is necessarily associated with a window. Depending on the runtime platform used, this menu can be:
    • displayed below the title bar of window (Windows applications for example).
    • displayed at the bottom of window (Windows Mobile applications for example).
    • displayed in an Action Bar control (mobile applications for example).
    For more details, see:
  • Universal Windows 10 AppAndroidiPhone/iPad the custom popup menus.
    The user can open a context menu by pressing the right mouse button.
    See Custom popup menu for more details.
Versions 20 and later
iPhone/iPad Custom context menus are now available for iPhone/iPad applications.
New in version 20
iPhone/iPad Custom context menus are now available for iPhone/iPad applications.
iPhone/iPad Custom context menus are now available for iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App Custom popup menus are now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App Custom popup menus are now available in Universal Windows 10 App mode.
Universal Windows 10 App Custom popup menus are now available in Universal Windows 10 App mode.
A menu (main menu or context menu) includes one or more options and sub-options. Each option is used to run a WLanguage code.
For example:
Main menu
Popup menu
In the editor, the operations performed on the menu options are the same for a main menu and for a custom popup menu. To handle the menu options, simply edit the relevant menu.
To edit (or display in the editor):
  • A custom popup menu: 0
Remark: WINDEV and WINDEV Mobile also allow you to handle the menu options through programming.
This help page explains how to handle the menu options (addition, deletion, ...). For more details, see:
How to handle the menu options?

Adding a menu option

To add a menu option:
  • After the selected menu option, you can:
    • display the popup menu of current menu option (right mouse click) and select "Add after".
    • press the Enter key.
  • Before the selected menu option, you can:
    • display the popup menu of current menu option (right mouse click) and select "Add before".
    • press the Ins key.
  • Type the caption for the new menu option.
  • Press Enter to validate the addition.
Remarks:
  • The Esc key is used to cancel the addition of a menu option.
  • To go from a menu option to the next one, use the arrow keys (up and down).
  • Universal Windows 10 AppAndroid If a window contains more than 2 menus, an arrow is used to display the other menus in the window editor.

Linking a menu option to a preset action

To link a menu option to a preset action:
  1. Select the desired menu option.
  2. Display the popup menu from the current menu item (right click).
  3. Select "Preset action...". The window for selecting a preset action is displayed.
  4. Select the requested action and validate.
Universal Windows 10 App Preset actions are not available.

Adding a separator

To add a separator:
  1. Select the menu option in front of which the separator must be added.
  2. Display the popup menu from the current menu item (right click).
  3. Select "Insert a separator".
Remark: You also have the ability to:
  • add a separator before the selected menu option by pressing the Pause key.
  • add a separator by giving the "-" or "--" or "---" caption to the menu option. The option is changed into a separator when the input is validated.
Universal Windows 10 AppAndroidiPhone/iPad The separators are not available.

Adding a sub-menu

To add a sub-menu:
  1. Select the menu option to which a sub-option must be added.
  2. Display the popup menu from the current menu item (right click).
  3. Select "Transform to expand a submenu".
  4. Type the caption of first option of created sub-menu.
  5. Press Enter to validate the addition.
Remarks:
  • The method for adding sub-options into a sub-menu is the same as the method for adding options into a menu.
  • You also have the ability to add a sub-menu to the selected menu option by pressing the Tab key.
  • AndroidiPhone/iPad The sub-menus are not available in the popup menus.

Deleting a menu option

To delete a menu option:
  1. Select the menu option to delete.
  2. Display the popup menu from the current menu item (right click).
  3. Select "Delete".
Remark: You also have the ability to delete the current menu option by pressing the Del key.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment