Examples TOCexamples

Determinate 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, in determinate mode, with a class-method user callback.

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

The user callback defined on lines 26 to 36, and attached on progress bar at line 43, will echo each time +10% is reached.

QF renderer rules are defined on lines 73 to 85.

[Top]

 Render options

Here are the progress attributes:
background-color = #e0e0e0
HTML_Progress_UI::setProgressAttributes()
Here are the progress string attributes:
color            = #996
background-color = #CCCC99
HTML_Progress_UI::setStringAttributes()
Here are the progress cells attributes:
active-color = #996
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]