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
StringValue = aWebToolbarContainer.Caption

New in 2011r2

Supported for all project types and targets.

The caption that appears in the control.


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"


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