ProgressBarScreenGadget()

Syntax

Result = ProgressBarScreenGadget(#ScreenGadget, x, y, Width, Height, Minimum, Maximum)
Description
Creates a ProgressBar gadget in the current GadgetList.

Parameters

#ScreenGadget A number to identify the new gadget. #PB_Any can be used to auto-generate this number.
x, y, Width, Height The position and dimensions of the new gadget.
Minimum, Maximum The minimum and maximum values that the progress bar can take.

Return value

Nonzero on success, zero otherwise. If #PB_Any was used as the #ScreenGadget parameter then the return-value is the auto-generated gadget number on success.

Remarks

To add a 'mini help' to this gadget, use ScreenGadgetToolTip().

The following functions can be used to act on the gadget:

- SetScreenGadgetState(): Change progress bar value.
- GetScreenGadgetState(): Get the current progress bar value.

Supported OS

All

<- PanelScreenGadget() - ScreenGadget Index - RemoveScreenGadgetItem() ->