Index
The Progress bar and how to create it
The Parameters
Progress bar Functions
Important Info

The Progress bar and how to create it

The progress bar inherits from the control class. It is one of the many ways for an application to output information to the user. A progress bar is verry
common in GUI applications as a way to output information in the form of a bar holding the percent of a completed task.

--progress bar:
f1 = form(10, 10, 100, 100, false, "Main", color.white, color.black, true, false, false, false, false, false, true, false)
pb = progressbar(2, 2, 80, true, color.green, true, f1)

The code is exactly how you would create a progress bar. You must have a form created in order to store your progress bar, as with any other derivative of
the control class. As always you can declare any class two ways and if you dont remember how, read the forms reference here: Forms
The images below shows what the progress bar declared above looks like.

Figure 17:

progress bar Image

The Parameters

The progress bar parameters are as follows:

Parameter Description
int x The x location of the progress bar on the screen.
int y The y location of the progress bar on the screen.
int width The width of the progress bar.
color color Sets the progress bar's fill color.
form parent The form that the progress bar will be visible on.

If you dont know the keywords, go here: Forms

Progress bar Functions

Here are the diffrent functions that you can call that do something with lables:

Function Description Call example
Update(progress) Adds progress to self.progress. progressbar:Update(1)

Important Info

Other than making it pretty, this is what it will look like in WZGUILib 3.0.