PEAR::HTML::Progress example: Square Back
Author: Laurent Laville
Description: Display a square filled in reverse order as progress meter

examples

# Square Back

$Date: 2005/07/25 11:19:41 $

- Introduction
- Render options
- PHP source syntax highlight
- Play demo

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better (see source at line 11).

This example will run a polygonal (square 4x4) ProgressBar filled in reverse way.

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

[Top]

## Render options

Here are options to build this progress bar string (percent text info):

    valign = left
    align  = center

HTML_Progress_UI::setStringAttributes()
Here are options to build the progress bar cells :

    width  = 10
    height = 10

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]