DesktopMenuItem.Enabled
From Xojo Documentation
Property (As Boolean )
aDesktopMenuItem.Enabled = newBooleanValue
or
BooleanValue = aDesktopMenuItem.Enabled
New in 2021r3
Supported for all project types and targets.
or
BooleanValue = aDesktopMenuItem.Enabled
New in 2021r3
Supported for all project types and targets.
Indicates whether or not the menu item is enabled.
Notes
For MenuItems that belong to an App or Window menu, this property should only be set to True in the MenuBarSelected event handler. You can also use the Enable method for this purpose.
You can set it for MenuItems created for use by contextual menus or for use with the Popup method.
Example
This example is in the EnableMenuItems event handler and it enables a menu.
FilePageSetup.Enabled = True