addProgressBar

>>--addProgressBar(--id--,--x--,--y--,--cx--,--cy-+-----------+--)-------------><
                                                  +--,-style--+

The addProgressBar method adds a progress bar to the dialog and connects it with a data attribute. For further information on progress bar controls, refer to ProgressBar Class.

Arguments:

The arguments are:

id

The resource ID for the progress bar.

x, y, cx, cy

The control coordinates.

style

A list of 0 or more of the following style keywords separated by spaces.

VERTICAL HIDDEN GROUP
SMOOTH DISABLED TAB
MARQUEE BORDER  

VERTICAL

The progress bar is orientated vertically. The default orientation is horizontal.

SMOOTH

The progress is displayed in a smooth scrolling bar rather than the default segmented bar. This style is only displayed when Windows classic theme is in effect. All other themes over-ride this style.

MARQUEE

The progress bar moves like a marquee. This method requires Common Control Library version 6.0 or later.

HIDDEN

The not visible window style.

DISABLED

The not enabled window style.

BORDER

The border window style.

GROUP

The group control style.

TAB

The tabstop control style.

Return value:

The possible return values are:

0

Success.

less than 0

Error with the in-memory dialog template or with the resource ID.

Example:

The following example creates a progress bar with ID DONE at the bottom of the dialog. The progress bar is as wide as the dialog.

MyDialog~addProgressBar("DONE",10,MyDialog~sizey-16,MyDialog~sizex-20,12)