Identifies the state of a menu option (context menu or drop-down menu): active, inactive or invisible.
// State of the "OPT_IconBar" option
ResState = MenuState(OPT_IconBar)
Syntax
<Result> = MenuState([<Window>, ] <Menu option>)
<Result>: Constant
Current state of the menu option: | |
Active | The menu option is active. |
Grayed | The menu option is grayed. |
Invisible | The 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:
is equivalent to the
State property: