|
|
|
|
|
- Graying out a set of options
- Miscellaneous
MenuSelectMinus (Function) In french: MenuSelectMoins Disables (grays out) a menu option (popup menu or drop-down menu). The specified menu option cannot be selected anymore. The option can be re-enabled through programming with MenuSelectPlus.
// Grays out the "OPT_IconBar" option in // the drop-down menu ("Menu") of the current window MenuSelectMinus(OPT_IconBar) Â // Grays out the "OPT_IconBar" option in the "Menu" of the "WIN_Win1" window // The WIN_Win1 window is not the current window MenuSelectMinus(WIN_Win1, OPT_IconBar) Â // Grays out the "OPT_IconBar" option in "PopupMenu1" MenuSelectMinus(WIN_Win1, PopupMenu1.OPT_IconBar)
Syntax
MenuSelectMinus([<Window>, ] <Menu option>)
<Window>: Optional window name Name of the window containing the menu option to disable. If this parameter is not specified, MenuSelectMinus will handle the current window. <Menu option>: Option name Name of the menu option to disable. This name is defined in the description window of the menu option. This name must be specified without quotes. If this parameter corresponds to the name of a menu, all the sub-options of this menu will also be disabled (recursive). To gray out an option in a popup menu, use the following notation: <Name of popup menu>.<Option name>. Remarks Graying out a set of options To gray out a set of options, you must: - Assign the options to a group of controls
- Grey out the options (and the other controls in the group) with the State property.
Miscellaneous When a menu option is not visible ( Visible = False), it is displayed, but it is grayed out when MenuSelectMinus is called.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|