wx.ScrollWinEvent

Inheritance diagram for wx.ScrollWinEvent:



Description

A scroll event holds information about events sent from scrolling windows.

See also

wx.ScrollEvent

Derived From

Event Handling

Event Name Description
wx.EVT_SCROLLWIN(func) Process all scroll events.
wx.EVT_SCROLLWIN_TOP(func) Process wx.wxEVT_SCROLLWIN_TOP scroll-to-top events.
wx.EVT_SCROLLWIN_BOTTOM(func) Process wx.wxEVT_SCROLLWIN_BOTTOM scroll-to-bottom events.
wx.EVT_SCROLLWIN_LINEUP(func) Process wx.wxEVT_SCROLLWIN_LINEUP line up events.
wx.EVT_SCROLLWIN_LINEDOWN(func) Process wx.wxEVT_SCROLLWIN_LINEDOWN line down events.
wx.EVT_SCROLLWIN_PAGEUP(func) Process wx.wxEVT_SCROLLWIN_PAGEUP page up events.
wx.EVT_SCROLLWIN_PAGEDOWN(func) Process wx.wxEVT_SCROLLWIN_PAGEDOWN page down events.
wx.EVT_SCROLLWIN_THUMBTRACK(func) Process wx.wxEVT_SCROLLWIN_THUMBTRACK thumbtrack events (frequent events sent as the user drags the thumbtrack).
wx.EVT_SCROLLWIN_THUMBRELEASE(func) Process wx.wxEVT_SCROLLWIN_THUMBRELEASE thumb release events.

Properties Summary

Class API

Methods

__init__(commandType=wx.wxEVT_NULL, pos=0, orient=0)

A wx.ScrollWinEvent holds information about scrolling and is sent from scrolling windows.

Parameters:

  • commandType (eventtype)
  • pos (int)
  • orient (int)

Returns:

wx.ScrollWinEvent


GetOrientation()

Returns wx.HORIZONTAL or wx.VERTICAL, depending on the orientation of the scrollbar.


Returns:

int


GetPosition()

Returns the position of the scrollbar for the thumb track and release events.


Returns:

int

Note

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.


SetOrientation(orient)

Parameters:

  • orient (int)

SetPosition(pos)

Parameters:

  • pos (int)

Properties

Orientation
See GetOrientation and SetOrientation
Position
See GetPosition and SetPosition