FutureBasic Logo

<<    Index    >> FutureBasic

LevelIndicator   statement / function



Statement syntax
levelindicator tag, enabled, value, rect, min, max, warning, critical, tickmarks, majorTickmarks, wndTag

Function syntax
value = levelindicator(tag)

Description
The levelindicator statement puts a new levelindicator in the current output window, or alters an existing levelindicator's characteristics. The levelindicator function returns the value of the indicator 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 levelindicator and that you refer to when altering the indicator. 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 levelindicator.
enabled A boolean value which specifies whether the levelindicator should be enabled or disabled.
value The initial displayed value of the levelindicator.
rect The levelindicator'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 indicator.
(ii) A CGRect value
min The levelindicator's minimum value (default = 0).
max The levelindicator's maximum value (default = 2).
warning The levelindicator's warning value (default = 0).
critical The levelindicator's critical value (default = 0).
tickmarks The number of tickmarks (default = 0).
majorTickmarks The number of major tickmarks must be less than or equal to the number of tickmarks (default = 0).
wndTag An optional parameter for when the levelindicator'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
NSLevelIndicator