setCtlTextv

Syntax

setCtlTextv(int ctlnum, string textv)

Arguments

ctlnum
The number of the control whose text you'd like to change.
textv
A string containing the formatted text you'd like the label text changed to.

Description

This function changes the text property of the user control with the index ctlnum using formmated text. Note that not all user controls support text strings. Also keep in mind that the user control has to be resized if your text string exceeds the current size. Substrings and escape sequences are allowed.

Example

setCtlTextv(1, "Rewrite me");
setCtlTextv(CTL_OK, "Apply");  //rename OK pushbutton text to ?Apply?

Also see

setCtlText

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.