PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
WINDEV and WINDEV Mobile manage two types of menus:
  • AndroidUniversal Windows 10 AppWindows Mobile 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:
  • AndroidiPhone/iPadUniversal Windows 10 AppWindows Mobile the custom popup menus.
    A popup menu can be opened by the user via a right mouse click.
    See Custom popup menu for more details.
Versions 20 and later
iPhone/iPad The custom popup menus are now available for the iPhone/iPad applications.
New in version 20
iPhone/iPad The custom popup menus are now available for the iPhone/iPad applications.
iPhone/iPad The custom popup menus are now available for the 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 popup 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, all you have to do is edit the relevant menu.
To edit (or display in the editor):
  • Windows Mobile The main menu of a window:
    • open the relevant window in the window editor.
    • select one of the menu options. The options and the sub-options are automatically displayed.
  • A custom popup menu: on the "Window" pane, in the "Bars and menus" group, expand "Popup menus" and select one of the existing popup menus.
Remark: WINDEV and WINDEV Mobile also allow you to handle the menu options by 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).
  • AndroidUniversal Windows 10 AppWindows Mobile 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.
AndroidiPhone/iPadUniversal Windows 10 App 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