ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Menu functions
  • Equivalence
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Identifies the status of a menu option (context menu or drop-down menu): active, inactive or invisible.
Example
// Etat de l'option "OPT_BarreIcone" 
ResEtat = MenuState(OPT_BarreIcone)
Syntax
<Result> = MenuState([<Window>, ] <Menu option>)
<Result>: Constant
Current state of the menu option:
ActiveThe menu option is active.
GrayedThe menu option is grayed.
InvisibleThe menu option is invisible.
<Window>: Optional window name
Name of the window containing the menu option.
If this parameter is not specified, MenuState will handle the current window.
<Menu option>: Option name
Name of the menu option to use. This name is defined in the description window of the menu option. This name must be specified without quotes.
Remarks

Equivalence

The syntax:
MenuEtat(<Option de menu>)
is equivalent to the State property:
<Option de menu>.Etat
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help