Examples TOCexamples

Rectangle

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

 Table of contents

Introduction

This example requires :


This example will run a polygonal (rectangle 6x4) ProgressBar filled in natural way.

Cell coordinates are pre-computed (line 27) but free x-y-grid coordinates are also possible. Percent text info is centered on a white background area of 90 pixels width, at bottom side of polygonal shape.

[Top]

 Render options

Here are options to build this progress bar string (percent text info):
valign = bottom
align  = center
width  = 90
height = 30
HTML_Progress_UI::setStringAttributes()
Here are options to build the progress bar cells :
active-color   = red
inactive-color = orange
width          = 15
height         = 15
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.