From Xojo Documentation

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

Property (As Variant )
aDesktopToolbarItem.Tag = newVariantValue
VariantValue = aDesktopToolbarItem.Tag

New in 2021r3

Supported for all project types and targets.

A “hidden” value associated with the toolbar item.


The tag is accessible via code when the user chooses the toolbar item but, unlike the Caption property, is not displayed in the toolbar.


This example is in the Toolbar Initialized event of the main window.

Me.SaveButton.Tag = folderItemToSave