A scroll event holds information about events sent from scrolling windows.
To process a scroll window event, use these event handler macros to direct input to member functions that take a ScrollWinEvent argument. You can use the EVT_SCROLLWIN… macros for intercepting scroll window events from the receiving window.
| evt_scrollwin() { | event | ... } | Process all scroll events. |
| evt_scrollwin_top() { | event | ... } | Process EVT_SCROLLWIN_TOP scroll-to-top events. |
| evt_scrollwin_bottom() { | event | ... } | Process EVT_SCROLLWIN_TOP scroll-to-bottom events. |
| evt_scrollwin_lineup() { | event | ... } | Process EVT_SCROLLWIN_LINEUP line up events. |
| evt_scrollwin_linedown() { | event | ... } | Process EVT_SCROLLWIN_LINEDOWN line down events. |
| evt_scrollwin_pageup() { | event | ... } | Process EVT_SCROLLWIN_PAGEUP page up events. |
| evt_scrollwin_pagedown() { | event | ... } | Process EVT_SCROLLWIN_PAGEDOWN page down events. |
| evt_scrollwin_thumbtrack() { | event | ... } | Process EVT_SCROLLWIN_THUMBTRACK thumbtrack events (frequent eventssent as the user drags the thumbtrack). |
| evt_scrollwin_thumbrelease() { | event | ... } | Process EVT_SCROLLWIN_THUMBRELEASE thumb release events. |
ScrollEvent, Event handling overview
ScrollWinEvent.new(TYPE commandType = 0, Integer pos = 0,
Integer orientation = 0)
Constructor.
Integer get_orientation()
Returns HORIZONTAL or VERTICAL, depending on the orientation of the scrollbar.
Integer get_position()
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.
[This page automatically generated from the Textile source at Fri Oct 31 16:06:49 +0000 2008]