WebToolbar.InsertItem

From Xojo Documentation


Method

WebToolbar.InsertItem(index As Integer, item As WebToolbarItem)

Supported for all project types and targets.

Inserts item to the toolbar at the specified index at run-time.

Example

This code inserts a button as the first position to a toolbar called TestToolbar:

Var button As New WebToolbarButton
button.Caption = "Button"
button.Enabled = True

TestToolbar.InsertItem(0, button)

See Also

WebToolbar.AppendItem, WebToolbar.RemoveItem