DesktopToolbar.MenuItemSelected

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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 DesktopToolbarButton class. It adds a toolbar with a drop-down button style DesktopToolbarButton and then uses the MenuItemSelected event to manage menu selection from the drop-down menu.

See Also

ToolButton,ToolItem classes.