FutureBasic Logo

<<    Index    >> FutureBasic

ProgressIndicator   statement / function

Statement syntax
progressindicator tag, value, rect, min, max, wndTag

Function syntax
value = progressindicator(tag)

The progressindicator statement puts a new progressindicator in the current output window, or alters an existing progressindicator's characteristics. The progressindicator function returns the indicator's current value and is equivalent to calling fn ProgressIndicatorDoubleValue.

tag A number (1 through 1000000) that you assign when you create the progressindicator 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 progressindicator.
value The value that indicates the current extent of the progressindicator (default = 0).
rect The progressindicator'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 minimum value of the progressindicator (default = 0).
min The maximum value of the progressindicator (default = 100).
wndTag An optional parameter for when the progressindicator'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.

Apple documentation