guiLabelCreate (Function) |
Top Previous Next |
This function creates a new label on the provided form. Labels can be used to display text to the user, either as a description for another control, or to show e.g. status messages.
To change the text after it has been created, use guiControlSetText.
Input: form : SYSHANDLE A handle to the form that the label is created on.
x : SINT default 1 The horizontal location of the label.
y : SINT default 1 The vertical location of the label.
w : SINT default 1 The width of the label.
h : SINT default 1 The height of the label.
text : STRING The text for the label to show.
tag : DINT The tag value to store.
valign : SINT default 0 The vertical alignment of the text in the label. 0 - Left aligned. 1 - Centered. 2 - Right aligned.
border : SINT default 0 The border type for the label. 0 - No border. 1 - Thin border.
Output: label : SYSHANDLE The handle to the new label.
Returns: INT
Declaration: FUNCTION guiLabelCreate : INT;
Example: INCLUDE rtcu.inc |