PEAR::HTML::Progress example: Smallest
Author: Laurent Laville
Description: the smallest horizontal progress meter

examples

# Smallest

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

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

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better.

This example will run the smallest ProgressBar, you can build.

Percent text info is right aligned on 50 pixels width area at right side of the progress bar (default).

[Top]

## Render options

Here are options to build the progress bar cells :

    active-color   = #970038
    inactive-color = #FFDDAA
    width          = 7
    height         = 12

HTML_Progress_UI::setCellAttributes()
Here are options to build the progress bar border :

    width = 1

HTML_Progress_UI::setBorderAttributes()
Here are options to build the progress bar string (percent text info):

    font-size        = 10
    background-color = #C3C6C3

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]