Panel: progress

Syntax

{<name>:} progress <start>,<finish> {,<value>}

Description

Progress sub-panel. A horizontal or vertical bar to show progress within a given range via a blue rectangle within a containing trough. The current progress value is displayed in the middle of the trough. A progress panel has no interactive functionality.

Membership

Parameters

Switches

Callbacks

None

Notes

If the <start> value is greater than the <finish> value the direction of the progress bar is reversed, i.e. left to right, or top to bottom.

Switches -j, -pj, -x and -y apply only to progress bars within a panel window. Progress bars within other windows and menupanes cannot have a user-defined position or justification.

Examples

Create a panel window containing a row of two horizontal progress bars.

window w = wpanel {
   p1: progress 0,100,-tc=red,-w=200;# Red text
   p2: progress 0,10,-dp=2,-w=200,-icol=yellow
}

Set the progress values within them.

w.p1.value = 95
w.p2.value = 4.2