Examples TOCexamples

Model

$Date: 2005/07/25 10:25:30 $

 Table of contents

Introduction

This example requires :


This example will run a horizontal ProgressBar, with limits (min = 0, max = 60) and increment set to 5 in the mathematical model TimerProgress.

The custom string is center aligned at bottom side of the progress bar. Cells have default size and colors.

First introduction of progress handler (user-callback). Function is defined on lines 21 thru 38, and attached on progress bar at line 45.

[Top]

 Render options

Here are options to build this progress bar string (percent text info):
width  = 170
height = 20
valign = bottom
align  = center
HTML_Progress_UI::setStringAttributes()

[Top]

 Output

Screenshot

[Top]

 PHP source syntax highlight

Open source listing in a new window.

[Top]

 Play demo

Run the script.

[Top]