PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Graying a set of options
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 by programming with MenuSelectPlus.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Grays the "OPT_IconBar" option found in
// the drop-down menu ("Menu") of the current window
MenuSelectMinus(OPT_IconBar)

// Grays the "OPT_IconBar" option found in the "Menu" menu of the "WIN_Win1" window
// The WIN_Win1 window is not the current window
MenuSelectMinus(WIN_Win1, OPT_IconBar)

// Grays the "OPT_IconBar" option found in the popup menu named "PopupMenu1"
MenuSelectMinus(WIN_Win1, PopupMenu1.OPT_IconBar)
Syntax
MenuSelectMinus([<Window Name>] , <Name of Menu Option>)
<Window Name>: Optional character string (with or without quotes)
Name of the window containing the menu option to disable.
If this parameter is not specified, MenuSelectMinus handles the current window.
<Name of Menu Option>: Character string (without quotes)
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. Gray the options (and the other controls in the group) with ..State = grayed applied to the group of controls.

Various

When a menu option is not visible (..Visible = False), the option becomes visible but it is grayed after the call to MenuSelectMinus.
Components
WINDEVReports and Queries wd230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment