PEAR::HTML::Progress example: Half Indeterminate and Monitor
Author: Laurent Laville

examples

# Half Indeterminate and Monitor

$Date: 2005/07/25 11:33:24 $

- Introduction
- Render options
- Ouput
- PHP source syntax highlight
- Play demo

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better (see source at line 12).

This example will run a basic ProgressBar in indeterminate mode (with monitor) then switch back to determinate mode when reached a limit-level (internal value > 240).

Actions to switch back to determinate mode are allowed by user callback myProgressHandler defined on lines 14 to 38.

This callback is attached on progress bar at line 66 and monitor renders are defined on lines 102 to 113 (following QF rendering rules).

[Top]

## Render options

Here are options to build this progress bar :

    background-color = #e0e0e0

HTML_Progress_UI::setProgressAttributes()
Here are options to build this progress bar string (percent text info):

    color            = #996
    background-color = #CCCC99

HTML_Progress_UI::setStringAttributes()
Here are options to build the progress bar cells :

    active-color   = #996

HTML_Progress_UI::setCellAttributes()
Here are options to run the progress bar :

    speed     = 100
    increment = 10

HTML_Progress::setAnimSpeed()
HTML_Progress::setIncrement()

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the script.

[Top]