A windows progress bar control. Encapsulates an MFC CProgressCtrl
class. Derived from PyCControl.
-
Creates the window for a new progress bar object.
-
Sets the lower and upper bounds for the progress bar.
-
Set the control's position
-
Advances the progress bar control's current position by the increment specified.
-
Specifies the step increment for a progress bar control.
-
Advances the current position for a progress bar control by the step increment. Returns previous position.
PyCProgressCtrl.CreateWindow
CreateWindow(style, rect, parent, id) Creates the actual control.
-
style : int
The style for the control.
-
rect : (left, top, right, bottom)
The size and position of the control.
-
parent : PyCWnd
The parent window of the control. Usually a PyCDialog.
-
id : int
The control's ID.
PyCProgressCtrl.OffsetPos
int = OffsetPos(nPos) Advances the progress bar control's current position by the increment specified
-
nPos=1 : int
Amount to advance the position.
PyCProgressCtrl.SetPos
int = SetPos(nPos) Set the control's position
-
nPos=1 : int
New position of the progress bar control.
PyCProgressCtrl.SetRange
SetRange(nLower, nUpper) Set the control's bounds
-
nLower=1 : int
Specifies the lower limit of the range (default is zero).
-
nUpper=1 : int
Specifies the upper limit of the range (default is 100).
PyCProgressCtrl.SetStep
int = SetStep(nStep) Specifies the step increment for a progress bar control.
-
nStep=1 : int
New step increment.
PyCProgressCtrl.StepIt
int = StepIt() Advances the current position for a progress bar control by the step increment. Returns previous position.