MenuItem.EnableMenu
From Xojo Documentation
Event
Called when a user selects a menu. You can use this to enable/disable/hide menus based on the context of your app.
Called when a user selects a menu. You can use this to enable/disable/hide menus based on the context of your app.