Window.EnableMenuItems
From Xojo Documentation
Event
The user has clicked in the menu bar or pressed a keyboard shortcut assigned to one of the menu items.
Notes
Use this event handler to determine whether conditions are right to enable the menu items.