WebToolbar.ItemAtIndex

From Xojo Documentation

Method

WebToolbar.ItemAtIndex(ZeroBasedIndex as Integer) As WebToolbarItem

Supported for all project types and targets.

Used to access a toolbar item. The left most item is index 0. If the item specified by ZeroBasedIndex does not exist, an OutOfBoundsException will be triggered.

Example

This code disables all the buttons on a toolbar:

For i As Integer = 0 To Toolbar1.ItemCount - 1
WebToolbarButton(Toolbar1.ItemAtIndex(i)).Enabled = False
Next