GUI Help > Create > createProgressBar
createProgressBar
int handle=createProgressBar(int x, int y, int width, int height, handle parent)
Description: Creates a progress bar. This is a bar (usually blue) which shows how much of an operation has been completed, for example an installation or the rendering of a lightmap.
Return Value: Handle of the new progressbar.
Parameters:
x | X position of new gadget
y | Y position of new gadget
width | Width of new gadget in pixels
height | Height of new gadget in pixels
parent | Handle of the parent gadget, or 0 for the main window.
Remarks: Progress bars have a default range of 0 to 100, which you can change with setProgressBarRange. You can set the percentage progress using setProgressBarPos.
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)