wx.ScrollWinEvent¶
A scroll event holds information about events sent from scrolling windows.
Note that you can use the EVT_SCROLLWIN macros for intercepting scroll window events from the receiving window.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.ScrollWinEvent parameter.
EVT_SCROLLWIN: Process all scroll events.
EVT_SCROLLWIN_TOP: Process
wxEVT_SCROLLWIN_TOPscroll-to-top events.EVT_SCROLLWIN_BOTTOM: Process
wxEVT_SCROLLWIN_BOTTOMscroll-to-bottom events.EVT_SCROLLWIN_LINEUP: Process
wxEVT_SCROLLWIN_LINEUPline up events.EVT_SCROLLWIN_LINEDOWN: Process
wxEVT_SCROLLWIN_LINEDOWNline down events.EVT_SCROLLWIN_PAGEUP: Process
wxEVT_SCROLLWIN_PAGEUPpage up events.EVT_SCROLLWIN_PAGEDOWN: Process
wxEVT_SCROLLWIN_PAGEDOWNpage down events.EVT_SCROLLWIN_THUMBTRACK: Process
wxEVT_SCROLLWIN_THUMBTRACKthumbtrack events (frequent events sent as the user drags the thumbtrack).EVT_SCROLLWIN_THUMBRELEASE: Process
wxEVT_SCROLLWIN_THUMBRELEASEthumb release events.
See also
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Returns |
|
Returns the position of the scrollbar for the thumb track and release events. |
|
Properties Summary¶
See |
|
See |
Class API¶
- class wx.ScrollWinEvent(Event)¶
Possible constructors:
ScrollWinEvent(commandType=wxEVT_NULL, pos=0, orientation=0) -> None
A scroll event holds information about events sent from scrolling windows.
Methods¶
- __init__(self, commandType=wxEVT_NULL, pos=0, orientation=0)¶
Constructor.
- Parameters:
commandType (wx.EventType)
pos (int)
orientation (int)
- Return type:
None
- GetOrientation(self)¶
Returns
wx.HORIZONTALorwx.VERTICAL, depending on the orientation of the scrollbar.- Return type:
int
Todo
wx.HORIZONTALandwx.VERTICALshould go in their own enum
- GetPosition(self)¶
Returns the position of the scrollbar for the thumb track and release events.
Note that this field can’t be used for the other events, you need to query the window itself for the current position in that case.
- Return type:
int
- SetOrientation(self, orient)¶
- Parameters:
orient (int)
- Return type:
None
- SetPosition(self, pos)¶
- Parameters:
pos (int)
- Return type:
None
Properties¶
- Orientation¶
See
GetOrientationandSetOrientation
- Position¶
See
GetPositionandSetPosition