MenuItem.EnableMenu

From Xojo Documentation

Event


MenuItem.EnableMenu()

Supported for all project types and targets.

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