BBjWindow::addProgressBar
Description
In BBj 3.00 and higher, this method adds a progress bar control to the BBjWindow.
Syntax
Return Value |
Method |
---|---|
addProgressBar(int ID, number x, number y, number w, number h) |
|
addProgressBar(int ID, number x, number y, number w, number h, int minimum, int maximum) |
|
addProgressBar(int ID, number x, number y, number w, number h, int orientation) |
|
addProgressBar(int ID, number x, number y, number w, number h, int orientation, int minimum, int maximum) |
|
addProgressBar(int ID) | |
addProgressBar(int ID, int minimum, int maximum) | |
addProgressBar(int ID, int orientation) | |
addProgressBar(int ID, int orientation, int minimum, int maximum) | |
addProgressBar() |
Parameters
Variable |
Description |
---|---|
ID |
Specifies the Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window. |
x |
Horizontal position of the upper-left corner of the control in current units. |
y |
Vertical position of the upper-left corner of the control in current units. |
width |
Width of the control in current units. |
height |
Height of the control in current units. |
orientation |
Use one of the following constants. By default, the orientation is HORIZONTAL. HORIZONTAL VERTICAL |
minimum |
Minimum value. The default minimum value is 0. |
maximum |
Maximum value. The default maximum value is 100. |
Return Value
Returns the created BBjProgressBar object.
Remarks
If the ID parameter is not specified, a control ID is assigned dynamically using getAvailableControlID().
If the x, y, width, and height parameters are not specified, they're all initialized to 0. This is typically for use with DWC windows that dynamically arrange their contents (window creation flag $00100000$).
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.