MenuItem.Enable

From Xojo Documentation

Method

MenuItem.Enable()

Supported for all project types and targets.

Sets the Enabled property of the menu item to True. Call Enable only within an EnableMenuItems event handler.

Example

This example enables the Save menu item only if the TextHasChanged property is True.

If TextHasChanged then
FileSave.Enable
End if