WebToolbarContainer.Caption

From Xojo Documentation

Property (As String )
aWebToolbarContainer.Caption = newStringValue
or
StringValue = aWebToolbarContainer.Caption

New in 2011r2

Supported for all project types and targets.

The caption that appears in the control.

Notes

The Caption can be surrounded by "<raw></raw>" tags to temporarily disable HTML parsing. For example, you could bold just a single word in a Caption by doing this:

item.Caption = "<raw><b>bold</b></raw> text"

Example

This code changes the caption for an existing container on the toolbar:

Var item As WebToolbarContainer
item = WebToolbarContainer(Toolbar1.ItemWithName("SearchControl"))

If item <> Nil Then
item.Caption = "New Caption"
End If