guiSpinnerCreate (Function) |
Top Previous Next |
This function creates a new numeric spinner on the provided form. Numeric spinners are used to allow the user to enter a numeric value, which triggers the spinner changed event. If the width of the spinner is three or more times larger than the height, it will show two buttons for incrementing and decrementing the value. Clicking the button increments/decrements the value by 1, and long pressing increments/decrements the value by 100.
Input: form : SYSHANDLE A handle to the form that the spinner is created on.
x : SINT default 1 The horizontal location of the spinner.
y : SINT default 1 The vertical location of the spinner.
w : SINT default 1 The width of the spinner.
h : SINT default 1 The height of the spinner.
tag : DINT The tag value to store.
value : DINT The initial value of the spinner.
min_value : DINT default -2147483648 The minimum allowed value of the spinner.
max_value : DINT default 2147483647 The maximum allowed value of the spinner.
Output: spinner : SYSHANDLE The handle to the new spinner.
Returns: INT
Declaration: FUNCTION guiSpinnerCreate : INT;
Example: INCLUDE rtcu.inc |