Skip to content

Latest commit

 

History

History
116 lines (58 loc) · 2.54 KB

PyCProgressCtrl.md

File metadata and controls

116 lines (58 loc) · 2.54 KB

PyCProgressCtrl

PyCProgressCtrl Object

A windows progress bar control. Encapsulates an MFC CProgressCtrl

class. Derived from PyCControl.

Methods

  • CreateWindow

    Creates the window for a new progress bar object. 

  • SetRange

    Sets the lower and upper bounds for the progress bar. 

  • SetPos

    Set the control's position 

  • OffsetPos

    Advances the progress bar control's current position by the increment specified. 

  • SetStep

    Specifies the step increment for a progress bar control. 

  • StepIt

    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.

Parameters

  • 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

Parameters

  • nPos=1 : int

    Amount to advance the position.

int = SetPos(nPos) Set the control's position

Parameters

  • nPos=1 : int

    New position of the progress bar control.

SetRange(nLower, nUpper) Set the control's bounds

Parameters

  • 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).

int = SetStep(nStep) Specifies the step increment for a progress bar control.

Parameters

  • nStep=1 : int

    New step increment.

int = StepIt() Advances the current position for a progress bar control by the step increment. Returns previous position.