WebToolbarMenu.Caption

From Xojo Documentation

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

New in 2011r2

Supported for all project types and targets.

The text of the label for the toolbar menu button. The Caption is displayed below the icon if there is one.

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:

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

Example

This code changes the caption for an existing menu button on the toolbar:

Var button As WebToolbarMenu
button = WebToolBarMenu(Toolbar1.ItemWithName("ChartsButton"))

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