PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Graying a set of options
  • Various
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
Disables (grays) 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.
Example
// Grise l'option "OPT_BarreIcone" dans
// le menu déroulant "Menu" de la fenêtre en cours
MenuSelectMinus(OPT_BarreIcone)
 
// Grise l'option "OPT_BarreIcone" dans le menu "Menu" de la fenêtre "FEN_Fen1"
// La fenêtre FEN_Fen1 n'est pas la fenêtre en cours
MenuSelectMinus(FEN_Fen1, OPT_BarreIcone)
 
// Grise l'option "OPT_BarreIcone" dans le menu contextuel "MenuContextuel1"
MenuSelectMinus(FEN_Fen1, MenuContextuel1.OPT_BarreIcone)
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 an option in a popup menu, use the following notation: <Name of popup menu>.<Option name>.
Remarks

Graying a set of options

To gray a set of options, you must:
  1. Assign the options to a group of controls
  2. Grey out the options (and other fields in the group) with the Property Report.

Various

When a menu option is not visible (Visible = False), the option becomes visible but it is grayed after the call to MenuSelectMinus.
Component: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment