
- Dewey Bunnell
ProgressBar
ProgressBar Methods
| ProgressBar() | Constructor for the ProgressBar class |
| SetValue() | Sets the current value ffor the progress bar control |
ProgressBar Constants
| Constant Data Item | Data Type | Value |
| ProgressBar.SolidBar | int | 1 |
| ProgressBar.BrokenBar | int | 2 |
Derived Classes
None
See Also
Class Hierarchy, Frame, ChildFrame, Dialog
public method ProgressBar(Window Parent, int XPos, int YPos, int Width, int Height, int MaxValue = 100, int BarType = ProgressBar.SolidBar)
Parameters
Parent
Parent window for the progress bar control
XPos
One based X position of control relative to parent
YPos
One based Y position of control relative to parent
Width
Initial width of the control in pixels
Height
Initial height of the control in pixels
MaxValue
Value to correspond to a completely filled bar (default of 100)
BarType
Bar type (SolidBar or BrokenBar)
Return Value
None
Description
Constructor for the ProgressBar class, which specifies the size and position, the max value and the bar type.
ProgressBar Class
public method SetValue(int CurrentValue)
Parameters
CurrentValue
Specifies current value for the progress bar
Return Value
None
Description
Specifies the current size of the progress bar. The length of the bar drawn within the progress bar control is dictated by this value. The ratio of the bar length to the with of the progress bar control is the same as the ratio of the current value to the max limit for the progress bar. If the current value is less than one, the bar will be empty, and if the current value is greater than the max limit, the bar will fill the entire width of the progress bar control.
ProgressBar Class