GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.ScrollWinEvent — wxPython 4.3.2 Docs
|
Constructor. |
|
Returns |
|
Offset of the scroll position from the nearest position expressed in scroll units. |
|
Returns the position of the scrollbar for the thumb track and release events. |
|
Properties Summary¶See |
|
See |
Class API¶Possible constructors:
ScrollWinEvent(commandType=wxEVT_NULL, pos=0, orientation=0) -> None
A scroll event holds information about events sent from scrolling windows.
Constructor.
commandType (wx.EventType)
pos (int)
orientation (int)
None
Returns wx.HORIZONTAL or wx.VERTICAL, depending on the orientation of the scrollbar.
int
Todo
wx.HORIZONTAL and wx.VERTICAL should go in their own enum
Offset of the scroll position from the nearest position expressed in scroll units.
In cases where scrolling is possible with single pixel precision, such as when panning on a touch screen with fingers, this returns the offset in pixels of the real position compared to the position obtained by multiplying the current scroll position in scroll units by the size of scroll unit in pixels. For example, if the scroll unit size (pixels per line) is 20px, this function returns a value which can be between 0 and 19.
int
Added in version 4.2/wxWidgets-3.2.2.
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.
int
orient (int)
None
pos (int)
None
See GetOrientation and SetOrientation
See GetPosition and SetPosition