guiButtonCreate (Function) |
Top Previous Next |
This function creates a new button on the provided form. Buttons triggers button click events, when clicked by the user. To change the text after it has been created, use guiControlSetText.
Input: form : SYSHANDLE A handle to the form that the button is created on.
x : SINT default 1 The horizontal location of the button.
y : SINT default 1 The vertical location of the button.
w : SINT default 1 The width of the button.
h : SINT default 1 The height of the button.
text : STRING The text for the button to show.
tag : DINT The tag value to store.
Output: button : SYSHANDLE The handle to the new button.
Returns: INT
Declaration: FUNCTION guiButtonCreate : INT;
Example: INCLUDE rtcu.inc |