File 'gui/progressbar.cls' (part of 'Pool_GuiBase')


Home | Packages | Files | Procedures | Classes | Keywords | External packages


Written by
Andreas Kupries
Description
Generation and maintenance of progressbars
Keywords
progressbar, animated feedback, feedback

Class 'progressbar'

Superclasses
valueManager
Options
barcolor, barlength, barwidth, orientation
Membervariables
barItem, orientation, pos
Methods
SetDimensions, TrackBarColor, TrackBarLength, TrackBarWidth, TrackGeometry, TrackOrientation, createSubwidgets, progressbar, setBindings, updateDisplay

-barcolor
Color of the bar, defaults to 'red'.
-barlength
Length of the bar in pixels (height for vertical orientation).
-barwidth
width of the bar in pixels for vertical orientation, height else.
-orientation
Orientation of the progressbar.

barItem
Index of the canvas item used as bar.
orientation
Internal orientation code of the bar, derived from the value of option -orientation.
pos
Pixel position of the bar, derived from the value of option -value.

SetDimensions ()

Updates the internal information about the drawn bar. Executed during initialization or changes to the widget orientation.

TrackBarColor (o oldValue)

Configure procedure. Propagates changes to the color of the bar into the display.
Argument: oThe changed option.
Argument: oldValueThe old value of the option.

TrackBarLength (o oldValue)

Configure procedure. Propagates changes to the length of the bar into the display.
Argument: oThe changed option.
Argument: oldValueThe old value of the option.

TrackBarWidth (o oldValue)

Configure procedure. Propagates changes to the width of the bar into the display.
Argument: oThe changed option.
Argument: oldValueThe old value of the option.

TrackGeometry (w h)

Executed for 'Configure' events, i.e. resizing operations. Updates the internal information about the drawn bar, then refreshes the display.
Argument: wNew width of the widget.
Argument: hNew height of the widget.

TrackOrientation (o oldValue)

Configure procedure. Propagates changes to the orientation of the bar into the display.
Argument: oThe changed option.
Argument: oldValueThe old value of the option.

createSubwidgets ()

Called after object construction. Generates the internal widgets and their layout.

progressbar ()

Constructor. Initializes the value of the inherited option '-value' to zero.

setBindings ()

Called after widget construction and layout. Adds the bindings required to make the widget reactive to changes in the enviroment. Here we track changes to the geometry, as imposed by the user or containing geometry managers.

updateDisplay ()

Method required by the superclass valueManager to propagate changes to the value into the display. Converts the percentage value into a pixelposition and then executes a redraw of the bar.


Generated by AutoDoc 2.1 at 02/20/1999, invoked by Andreas Kupries