GUI Help > Menus > setMenuItemEnabled
setMenuItemEnabled
setMenuItemEnabled handle menu, int item, bool enabled
Description: Enables or disables a menu item. When a menu item is disabled it appears grey and the user cannot select it.
Return Value:
Parameters:
menu | Handle of a menu
item | Number specifying the item you want to change. This is the number you assigned to the item with the addMenuItem command.
enabled | 0 to disable the item, 1 to enable it.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)