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.