A scroll event holds information about events sent from scrolling windows.
Derived from
Include files
<wx/event.h>
Event table macros
To process a scroll event, use these event handler macros to direct input to member functions that take a wxScrollEvent argument. You can use EVT_COMMAND_SCROLLWIN... macros with window IDs for when intercepting scroll events from controls, or EVT_SCROLLWIN... macros without window IDs for intercepting scroll events from the receiving window.
EVT_SCROLLWIN(func) | Process all scroll events. |
EVT_SCROLLWIN_TOP(func) | Process wxEVT_SCROLL_TOP scroll-to-top events. |
EVT_SCROLLWIN_BOTTOM(func) | Process wxEVT_SCROLL_TOP scroll-to-bottom events. |
EVT_SCROLLWIN_LINEUP(func) | Process wxEVT_SCROLL_LINEUP line up events. |
EVT_SCROLLWIN_LINEDOWN(func) | Process wxEVT_SCROLL_LINEDOWN line down events. |
EVT_SCROLLWIN_PAGEUP(func) | Process wxEVT_SCROLL_PAGEUP page up events. |
EVT_SCROLLWIN_PAGEDOWN(func) | Process wxEVT_SCROLL_PAGEDOWN page down events. |
EVT_SCROLLWIN_THUMBTRACK(func) | Process wxEVT_SCROLL_THUMBTRACK thumbtrack events (frequent events sent as the user drags the thumtrack). |
EVT_COMMAND_SCROLLWIN(id, func) | Process all scroll events. |
EVT_COMMAND_SCROLLWIN_TOP(id, func) | Process wxEVT_SCROLL_TOP scroll-to-top events. |
EVT_COMMAND_SCROLLWIN_BOTTOM(id, func) | Process wxEVT_SCROLL_TOP scroll-to-bottom events. |
EVT_COMMAND_SCROLLWIN_LINEUP(id, func) | Process wxEVT_SCROLL_LINEUP line up events. |
EVT_COMMAND_SCROLLWIN_LINEDOWN(id, func) | Process wxEVT_SCROLL_LINEDOWN line down events. |
EVT_COMMAND_SCROLLWIN_PAGEUP(id, func) | Process wxEVT_SCROLL_PAGEUP page up events. |
EVT_COMMAND_SCROLLWIN_PAGEDOWN(id, func) | Process wxEVT_SCROLL_PAGEDOWN page down events. |
EVT_COMMAND_SCROLLWIN_THUMBTRACK(id, func) | Process wxEVT_SCROLL_THUMBTRACK thumbtrack events (frequent events sent as the user drags the thumtrack). |
wxWindow::OnScroll, wxScrollEvent, Event handling overview
Members
wxScrollWinEvent::wxScrollWinEvent
wxScrollWinEvent::GetOrientation
wxScrollWinEvent::GetPosition
wxScrollWinEvent(WXTYPE commandType = 0, int id = 0, int pos = 0, int orientation = 0)
Constructor.
int GetOrientation() const
Returns wxHORIZONTAL or wxVERTICAL, depending on the orientation of the scrollbar.
int GetPosition() const
Returns the position of the scrollbar.