WebToolbarButton.Enabled

From Xojo Documentation

Property (As Boolean )
aWebToolbarButton.Enabled = newBooleanValue
or
BooleanValue = aWebToolbarButton.Enabled

New in 2011r2

Supported for all project types and targets.

Used to set the button to appear enabled or disabled. If True, the item is enabled.

Example

This code disables an existing button on the toolbar:

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

If button <> Nil Then
button.Enabled = False
End If