Examples TOCexamples

Indeterminate Monitor

$Date: 2004/06/27 13:08:50 $

 Table of contents

Introduction

This example requires :

Be aware that:


This example will run a simple ProgressBar Monitor, with a function user callback. Its starts in indeterminate mode then switch back in determinate mode.

Color scheme came from a UI pre-set model (class) called Progress_ITDynamic, defined on lines 14 to 25.

The user callback defined on lines 27 to 47, and attached on progress bar at line 54, will run progress bar until its reached 60 then switch back to determinate mode to complete process. All 10%, we will echo result on monitor.

QF renderer rules are defined on lines 91 to 103.

[Top]

 Render options

Here are the progress attributes:
background-color = #EEE
HTML_Progress_UI::setProgressAttributes()
Here are the progress string attributes:
color            = navy
background-color = #EEE
HTML_Progress_UI::setStringAttributes()
Here are the progress cells attributes:
inactive-color = #FFF
active-color   = #444444
HTML_Progress_UI::setCellAttributes()

[Top]

 Output

Screenshot

[Top]

 PHP source syntax highlight

Open source listing in a new window.

[Top]

 Play demo

Run the script.

[Top]