Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
  

SetCaption() Function

Sets the caption for a given control.

Syntax:

    SetCaption(id,text)


Parameters:

    id - Control Identifier
    text - Text to use as the caption


Remarks:

  • This function can be used to se or change the caption of any control such as Toolbar Button, static text, buttons etc.
    SetCaption() has no effect on edit and combo box controls. To set the value of these control types, use the SetValue() function instead.
    The caption text can contain variables such as $URL or %BUTTON_ID%.
    CR/LF and TAB characters can be included as \n, \r and \t

  • The SetCaption() function changes the control text, but it does not resize the control. If the new text is larger, call Resize() after setting the text to adjust the toolbar alignment. You may also need to call Redraw() to update the screen.


See Also:

    SetValue() | SetParam() | Resize() | Redraw()


Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy