ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Drop-down menus / WINDEV and WINDEV Mobile
  • Overview
  • Manipulating menu options in the editor
  • Adding a standard menu option
  • Adding a separator
  • Linking a menu option to a preset action
  • 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 support two types of drop-down menus:
  • main window menus.
    A main menu is always associated with a window. This menu can be displayed under the window's title bar. For more details, see Managing main window menus.
    AndroidiPhone/iPad In a mobile application, the menu is displayed via the Action Bar control. For more details, see Action Bar of a window.
  • custom context menus.
    The user can open a context menu by pressing the right mouse button.
    For more details, see Custom context menu.
A drop-down menu (main or custom context menu) is composed of one or more options and sub-options. Each option runs a WLanguage code.
For example:
Main menu
Context menu
In the editor, you can handle menu options in the same way for both main menus and custom context menus. To handle the menu options, simply edit the relevant menu.
To edit (or display in the editor):
  • A custom context menu: on the "Window" tab, in the "Bars and menus" group, expand "Popup menus" and select one of the existing context menus.
Remark: WINDEV and WINDEV Mobile also allow you to handle the menu options through programming.
This help page explains how to manipulate menu options (add, delete, etc.) in the the popup menu options editor.. For more details, see:
Manipulating menu options in the editor

Adding a standard menu option

To add a standard menu option:
  • After the selected menu option, you can:
    • either display the popup menu of the current menu item (right-click) and select "Add an item after".
    • press the Enter key.
  • Before the selected menu option, you can:
    • either display the popup menu of the current menu item (right-click) and select "Add option 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.

Adding a separator

To add a separator:
  1. Select the menu option in front of which the separator must be added.
  2. Right-click to open the context menu of the option.
  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.

Linking a menu option to a preset action

To link a menu option to a preset action:
  1. Select the desired menu option.
  2. Right-click to open the context menu of the option.
  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 sub-menu

To add a submenu:
  1. Select the menu option to which a sub-option must be added.
  2. Right-click to open the context menu of the option.
  3. Select "Transform to expand a submenu".
  4. Type the text of the first option of the new submenu.
  5. Press Enter to validate the addition.
Remarks:
  • You can use the same method to add options in menus and sub-options in submenus.
  • You also have the ability to add a submenu 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. Right-click to open the context menu of the option.
  3. Select "Delete".
Remark: You can also delete the current menu option with the Delete key.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/16/2023

Send a report | Local help