WebToolbarMenu.Icon

From Xojo Documentation

Property (As Picture )
aWebToolbarMenu.Icon = newPictureValue
or
PictureValue = aWebToolbarMenu.Icon

New in 2011r2

Supported for all project types and targets.

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

Example

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

Var button As WebToolbarMenu
button = WebToolBarMenu(Toolbar1.ItemWithName("ChartsButton"))

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