From Xojo Documentation

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

DesktopMenuItem.MenuItemSelected() As Boolean

New in 2021r3

Supported for all project types and targets.

Called when a DesktopMenuItem is selected. Return True to prevent the menu event from proceeding any further in the chain of menu handlers.


Refer to the DesktopMenuItem page for an example of how a menu that is created dynamically can use the MenuItemSelected event.