These events are generated by wWindow when the window is scrolling. Notice that these events are very similar to wScrollEvent but not derive from wCommandEvent. It means, these events won't propagate upwards by default.
Events: | wScrollWinEvent | Description |
wEvent_ScrollWin | Sent to window before all of following event. Use getKind() to know what kind of type it is. |
wEvent_ScrollWinTop | Scroll to top or leftmost. |
wEvent_ScrollWinBottom | Scroll to bottom or rightmost. |
wEvent_ScrollWinLineUp | Scroll line up or left |
wEvent_ScrollWinLineDown | Scroll line down or right. |
wEvent_ScrollWinPageUp | Scroll page up or left. |
wEvent_ScrollWinPageDown | Scroll page down or right. |
wEvent_ScrollWinThumbTrack | Frequent events sent as the user drags the thumbtrack. |
wEvent_ScrollWinThumbRelease | Thumb release events. |
wEvent_ScrollWinChanged | End of scrolling events |
|
method getKind(self: wScrollWinEvent): int {...}{.inline, raises: [], tags: [].}
-
Returns what kind of event type this is. Basically used in wEvent_ScrollWin.
method getOrientation(self: wScrollWinEvent): int {...}{.inline, raises: [], tags: [].}
-
Returns wHorizontal or wVertical
method getScrollPos(self: wScrollWinEvent): int {...}{.raises: [], tags: [].}
-
Returns the position of the scrollbar.