Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

<progress-bar>

Open abstract instantiable class

Summary

The class of progress bar windows.

Superclasses

<value-range-gadget>

Init-keywords

orientation:
An instance of type one-of(#"horizontal", #"vertical"). Default value: #"horizontal".

Library

duim-gadgets

Module

duim-gadgets

Description

The class of progress bar windows.

Figure 8.23 A progress bar

The orientation: init-keyword lets you specify whether the progress bar should be horizontal or vertical.

Internally, this class maps into the Windows progress indicator control.

Operations

None.

Example

The following code creates an "empty" progress bar:

*prog* := contain
            (make(<progress-bar>, 
                  value-range: 
                  range(from: 0, to: 100)));

By setting the gadget value of the progress bar, the progress of a task can be monitored as follows:

for (i from 0 to 100) gadget-value(*prog*) := i end;

See also

<slider>, page 644


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index