PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • Principle
  • WLanguage functions
  • WLanguage properties
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
The menu options can be handled:
Principle
Options are handled in the same way in context menus and main menus.
To handle a menu option programmatically, use the following syntax:
  • "<OptionName>" if the option is handled from the window.
  • "<WindowName>.<MenuName>.<OptionName>" if the option is handled from another window.
Remark: You also have the ability to handle the popup menus through programming (not only their options). For more details, see Custom context menu.

WLanguage functions

WINDEV and WINDEV Mobile propose several WLanguage functions specific to the menu options:
EnumMenuReturns:
  • the name of nth option or sub-option found in the main menu of window.
  • the name of nth option or sub-option found in a custom context menu (created with WINDEV or WINDEV Mobile).
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.
MenuAddSeparatorAdds a new separator into a menu.
MenuCloneClones a menu or a menu option as well as the associated code.
MenuUnMarkRemoves the checkmark displayed in front of the menu option (popup menu or drop-down menu).
MenuStateIdentifies the state of a menu option (context menu or drop-down menu): active, inactive or invisible.
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).
MenuLabelGets or changes the label of a menu option (context 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).
MenuMarkPositions the checkmark in front of the menu option (popup menu or drop-down menu).
MenuSelectMinusDisables (grays out) a menu option (popup menu or drop-down menu).
MenuSelectPlusEnables a menu option (popup menu or drop-down menu).
MenuDeleteDeletes a menu or a menu option.

WLanguage properties

WINDEV and WINDEV Mobile propose several WLanguage properties specific to the menu options:
CaptionUsed to find out and modify the caption of a menu option
CheckedUsed to manage a checkmarkin front of the menu option.
GroupUsed to find out whether the menu option belongs (or not) to a group of controls
ImageUsed to find out and modify the image of a menu option
MessageUsed to find out and modify the help message of a menu option
NameUsed to find out the name of a menu option
OccurrenceUsed to find out the number of options in a menu.
ReportUsed to find out and modify the display status (active, inactive or grayed) of a menu option
TypeAllows you to find out whether the element used is a menu option
ValueUsed to find out and modify the number associated with a menu option
VisibleUsed to find out whether a menu option is visible and to make a menu option visible/invisible
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment