WebToolbarContainer.Caption

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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