FutureBasic Logo

<<    Index    >> FutureBasic

stepper   statement / function



Statement syntax
stepper tag, enabled, value, rect, min, max, wndTag

Function syntax
value = stepper(tag)

Description
The stepper statement puts a new stepper in the current output window, or alters an existing stepper's characteristics. The stepper function returns the stepper's current value as a double and is equivalent to calling fn ControlDoubleValue.

Parameters
Parameter
Description
tag A number (1 through 1000000) that you assign when you create the stepper and that you refer to when altering the stepper. The number you assign must be different from the tag value of all other existing widgets in the current window. A negative tag hides the stepper.
enabled A boolean value which specifies whether the stepper should be enabled or disabled.
value The value that indicates the current extent of the stepper (default = 0).
rect The stepper's enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the stepper.
(ii) A CGRect value
min The minimum value of the stepper (default = 0).
max The maximum value of the stepper (default = 100).
wndTag An optional parameter for when the stepper's window is not the current output window. Note specifying this parameter does not bring the window to the front or make it the output window.
 
Dialog event
_btnClick
 

Apple documentation
NSStepper