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 ScrollWinEvent parameter.
See also
Methods Summary¶| __init__ | Constructor. |
| GetOrientation | Returns HORIZONTAL or VERTICAL, depending on the orientation of the scrollbar. |
| GetPosition | Returns the position of the scrollbar for the thumb track and release events. |
| SetOrientation | |
| SetPosition |
Properties Summary¶| Orientation | See GetOrientation and SetOrientation |
| Position | See GetPosition and SetPosition |
Class API¶A scroll event holds information about events sent from scrolling windows.
Possible constructors:
ScrollWinEvent(commandType=wxEVT_NULL, pos=0, orientation=0)
Constructor.
| Parameters: |
|
|---|
Returns HORIZONTAL or VERTICAL, depending on the orientation of the scrollbar.
| Return type: | int |
|---|
Todo
HORIZONTAL and VERTICAL should go in their own enum
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 |
|---|
| Parameters: | orient (int) – |
|---|
| Parameters: | pos (int) – |
|---|
See GetOrientation and SetOrientation
See GetPosition and SetPosition