WebToolbarMenu.Enabled

From Xojo Documentation

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

New in 2011r2

Supported for all project types and targets.

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

Example

This code changes disables an existing menu button on the toolbar:

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

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