From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

Supported for all project types and targets.

Indicates whether or not the menu item is enabled.


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 set it for MenuItems created for use by contextual menus or for use with the Popup method.


This example is in the EnableMenuItems event handler and it enables a menu.

FilePageSetup.Enabled = True