DesktopToolbar.MenuItemSelected

From Xojo Documentation

Event


DesktopToolbar.MenuItemSelected(Item as ToolItem,hitItem as DesktopMenuItem)

New in 2021r3

Supported for all project types and targets.

The passed ToolItem was chosen from the passed DesktopMenuItem.

Example

See the example for the DesktopToolButton class. It adds a toolbar with a drop-down button style DesktopToolButton and then uses the MenuItemSelected event to manage menu selection from the drop-down menu.

See Also

ToolButton,ToolItem classes.