MenuItem.Enabled

From Xojo Documentation

Property (As Boolean )
aMenuItem.Enabled = newBooleanValue
or
BooleanValue = aMenuItem.Enabled

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 EnableMenuItems 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