DesktopMenuItem.Enabled

From Xojo Documentation

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

Property (As Boolean )
aDesktopMenuItem.Enabled = newBooleanValue
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 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