檢視原始碼 wxScrollWinEvent (wx v2.4.3)
捲動事件包含從捲動視窗傳送的事件資訊。
請注意,您可以使用 EVT_SCROLLWIN* 巨集來攔截來自接收視窗的捲動視窗事件。
請參閱
這個類別繼承自,並且可以使用以下類別的函式:
wxWidgets 文件:wxScrollWinEvent
事件
使用 wxEvtHandler:connect/3
和 wxScrollWinEventType
來訂閱此類型的事件。
摘要
類型
-type wxScrollWin() :: #wxScrollWin{type :: wxScrollWinEvent:wxScrollWinEventType(), commandInt :: integer(), extraLong :: integer()}.
-type wxScrollWinEvent() :: wx:wx_object().
-type wxScrollWinEventType() ::
scrollwin_top | scrollwin_bottom | scrollwin_lineup | scrollwin_linedown | scrollwin_pageup |
scrollwin_pagedown | scrollwin_thumbtrack | scrollwin_thumbrelease.
函式
-spec getOrientation(This) -> integer() when This :: wxScrollWinEvent().
返回 wxHORIZONTAL 或 wxVERTICAL,取決於捲軸的方向。
-spec getPosition(This) -> integer() when This :: wxScrollWinEvent().
返回滑塊軌跡和釋放事件的捲軸位置。
請注意,此欄位不能用於其他事件,在這種情況下,您需要查詢視窗本身以取得目前位置。