WebToolbarButton.Icon

From Xojo Documentation

Property (As WebPicture )
aWebToolbarButton.Icon = newWebPictureValue
or
WebPictureValue = aWebToolbarButton.Icon

New in 2011r2

Supported for all project types and targets.

A 32x32 size icon that is displayed in the toolbar button. Setting the icon to nil will cause the item to have no icon, and the appearance will be adjusted accordingly.

Notes

Icons of sizes other than 32x32 are scaled to 32x32.

Example

This code changes the icon for an existing button on the toolbar:

Var button As WebToolbarButton
button = WebToolBarButton(Toolbar1.ItemWithName("SaveButton"))

If button <> Nil Then
button.Icon = SaveIcon // ChartsIcon is an icon added to the project
End If