PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
The following functions are used to manage the menus:
MenuAddAdds an existing popup menu into the main menu of the current window.
MenuAddMenuAdds a new menu into a window or into a page.
MenuAddOptionAdds a new menu option at the end of a menu.
MenuAddPopupTransforms a menu option of a page in order for this option to open a popup.
MenuAddSeparatorAdds a new separator into a menu.
MenuAddURLOptionAdds 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.
MenuCloneClones a menu or a menu option as well as the associated code.
MenuDeleteDeletes a menu or a menu option.
MenuExistIndicates whether a menu option exists in a menu
MenuInsertMenuInserts a menu before another menu in a window.
MenuInsertOptionInserts a new option at a specific position.
MenuInsertSeparatorInserts a separator into a menu.
MenuInvisibleMakes a menu option invisible (popup menu or drop-down menu).
MenuIsMarkedUsed to find out whether a checkmark is displayed in front of a menu option (popup menu or drop-down menu).
MenuLabelIdentifies or modifies the caption of a menu option (popup menu or drop-down menu).
MenuMarkPositions the checkmark in front of the menu option (popup menu or drop-down menu).
MenuSelectMinusDisables (grays) a menu option (popup menu or drop-down menu).
MenuSelectPlusEnables a menu option (popup menu or drop-down menu).
MenuStateIdentifies the status of a menu option (popup menu or drop-down menu): active, inactive or invisible.
MenuUnMarkRemoves the checkmark displayed in front of the menu option (popup menu or drop-down menu).
The following functions can also be used to manage the menus:
ControlPopupOwnerIdentifies the control on which the popup menu was opened.
EmulateMenuEmulates the next menu that will be opened and automatically runs the menu option passed in 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 is used to enumerate the drop-down menus or the popup menus of a window or control.
grMenuEnables or disables the popup menu of a chart.
OpenPopupMenuAutomatically opens a popup 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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment