DesktopToolbarItem.Tag

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
or
VariantValue = aDesktopToolbarItem.Tag

New in 2021r3

Supported for all project types and targets.

A “hidden” value associated with the toolbar item.

Notes

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

Example

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

Me.SaveButton.Tag = folderItemToSave