>>-anAdvancedControl~AddProgressBar(--id--,--x--,--y--,--cx--,--cy--> >--+---------------------------+--)-------------------------------->< | +--------------+ | | V | | +-,--"----+-VERTICAL-+-+--"-+ +-SMOOTH---+ +-BORDER---+
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.
The arguments are:
A unique identifier assigned to the control. You need the ID to refer to this control in other methods.
The position of the upper left corner of the control relative to the dialog, in dialog units.
The width and height of the dialog item, in dialog units.
This argument determines the behavior and style of the dialog item and can be one or more of the following:
The progress bar is oriented vertically.
The progress bar is incremented smoothly.
A border is drawn around the progress bar.
If you omit this argument, the progress bar is oriented horizontally.
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)