Examples TOCexamples

Default ProgressBar Observer

$Date: 2004/06/27 13:08:28 $

 Table of contents

Introduction

This example requires :


This example will run a ProgressBar in determinate mode that will log into a flat file ('progress_observer.log') each changes.

Here are the contents of that file :

A default progress bar observer is created at line 21, and attached at line 23

[Top]

 Render options

speed = 100 is set at line 16 
HTML_Progress::setAnimSpeed()
increment = 10 is set at line 18
HTML_Progress::setIncrement()
border painted with all default options at line 17 (color=black, shape=solid). 
Set size to 2 pixels at line 30.
HTML_Progress::setBorderPainted()
HTML_Progress_UI::setBorderAttributes()

[Top]

 Output

Screenshot

[Top]

 PHP source syntax highlight

Open source listing in a new window.

[Top]

 Play demo

Run the script.

[Top]