examples

Half Indeterminate and Monitor

$Date: 2004/08/10 18:12:29 $

 Table of contents

Introduction

This example requires :


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 46 and monitor renders are defined on lines 102 to 114 (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]