wxRuby Documentation Home

# Wx::ScrollWinEvent

A scroll event holds information about events sent from scrolling windows.

## Derived from

Event

Object

## Event table macros

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.

## See also

ScrollEvent, Event handling overview

## Methods

- ScrollWinEvent.new
- ScrollWinEvent#get_orientation
- ScrollWinEvent#get_position

### ScrollWinEvent.new

ScrollWinEvent.new(%(arg-type)TYPE% commandType = 0, Integer pos = 0, Integer orientation = 0)

Constructor.

### ScrollWinEvent#get_orientation

Integer get_orientation()

Returns HORIZONTAL or VERTICAL, depending on the orientation of the scrollbar.

### ScrollWinEvent#get_position

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 2023-06-09 00:45:35 +0000]