A scroll event holds information about events sent from stand-alone scrollbars (see ScrollBar) and sliders (see Slider).
Note that scrolled windows send the ScrollWinEvent which does not derive from CommandEvent, but from Event directly - don’t confuse these two kinds of events and use the event table macros mentioned below only for the scrollbar-like controls.
Handlers bound for the following event types will receive a ScrollEvent parameter.
Note
Note that unless specifying a scroll control identifier, you will need to test for scrollbar orientation with ScrollEvent.GetOrientation , since horizontal and vertical scroll events are processed using the same event handler.
See also
ScrollBar, Slider, SpinButton, ScrollWinEvent, Events and Event Handling
__init__ | Constructor. |
GetOrientation | Returns HORIZONTAL or VERTICAL, depending on the orientation of the scrollbar. |
GetPosition | Returns the position of the scrollbar. |
SetOrientation | |
SetPosition |
Orientation | See GetOrientation and SetOrientation |
Position | See GetPosition and SetPosition |
A scroll event holds information about events sent from stand-alone scrollbars (see ScrollBar) and sliders (see Slider).
Possible constructors:
ScrollEvent(commandType=wxEVT_NULL, id=0, pos=0, orientation=0)
Constructor.
Parameters: |
|
---|
Returns HORIZONTAL or VERTICAL, depending on the orientation of the scrollbar.
Return type: | int |
---|
Returns the position of the scrollbar.
Return type: | int |
---|
Parameters: | orient (int) – |
---|
Parameters: | pos (int) – |
---|
See GetOrientation and SetOrientation
See GetPosition and SetPosition