ProgressBar

A progressBar item is used to place a progress bar on the rollout. The syntax is:

progressBar <name> [ value:<number> ] [ color:<color> ] \

[ orient:<name> ]

The default alignment of progressBar items is #left.

Example:

button doit "Process Scene"

progressbar doit_prog color:red

on doit pressed do

(

for i = 1 to objArray.count do

(

doit_prog.value = 100.*i/objArray.count

...

)

doit_prog.value = 0

)

Parameters

value:

The initial progress percentage value (0 û 100). The default value is 0. This is an Integer value.

color:

The color of the progress bar. The default color value is [30,10,190].

orient:

Specifies whether the progress bar should fill from left to right (orient:#horizontal) or bottom to top (orient:#vertical). Default value is #horizontal.

Properties

<progressbar>.value             Integer

The progress bar complete percentage (0 û 100).

<progressbar>.color             Color

The color of the progress bar.

<progressbar>.orient            Name

The orientation of the progress bar fill: #horizontal - left to right; #vertical - bottom to top.

Events

on <progressbar> clicked <arg> do <expr>

Called when user clicks on the progress bar. The <arg> argument contains the percentage value at the clicked point.

See also