Home | Sign in | English EN
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
The following functions are used to manage menus (prefix syntax):
<Menu>.AddAdds an existing popup menu to the main menu of the current window.
<Menu>.AddMenuAdds a new menu into a window or into a page.
<Menu>.AddOptionAdds a new menu option at the end of a menu.
<Menu>.AddPopupTransforms a menu option of a page in order for this option to open a popup.
<Menu>.AddSeparatorAdds a new separator in a menu.
<Menu>.AddURLOptionAdds a new menu option at the end of a page menu. This menu option is used to display the page corresponding to the specified URL.
<Menu>.CloneClones a menu or a menu option as well as the associated code.
<Menu>.DeleteDeletes a menu or a menu option.
<Menu>.ExistIndicates whether a menu option exists in a menu.
<Menu>.InsertMenuInserts a menu before another menu in a window.
<Menu>.InsertOptionInserts a new option at a specific position.
<Menu>.InsertSeparatorInserts a separator into a menu.
The following functions can also be used to manage menus:
<Chart>.MenuEnables or disables the context menu of a chart.
ControlPopupOwnerIdentifies the control on which the context menu was opened.
EmulateMenuEmulates the next menu that will be opened and automatically runs the menu option passed as parameter.
EnumMenuIn a loop, this function is used to enumerate the menu options of a window as well as the sub-options of a menu option.
EnumSubElementIn a loop, this function enumerates the drop-down or context menus of a window or control.
OpenPopupMenuAutomatically opens a context menu for the current control or window.
Related Examples:
Managing the main menu of a window by programming Unit examples (WINDEV): Managing the main menu of a window by programming
[ + ] Handling the options found in the main menu of a window. This example is used to:
- Select or deselect a menu option
- Make a menu option visible or invisible
- Modifying the caption of a menu option
- Mark or unmark a menu option
- Run the code of a menu option
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment