setCtlText
Syntax
- setCtlText(int ctlnum, string text)
Arguments
- ctlnum
- The number of the control whose text you'd like to change.
- text
- A string containing the text you'd like the label text changed to.
Description
- This function changes the text property of the user control with the index ctlnum. 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
setCtlText(1, "Rewrite me");
setCtlText(CTL_OK, "Apply"); //rename OK pushbutton text to ?Apply?
Also see
- setCtlTextv
Comments
- Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.