added EVT_COMMAND_SCROLL_THUMBRELEASE event

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-03-04 00:21:59 +00:00
parent 75f4be8a9b
commit 9c7a49b57b

View File

@@ -1,9 +1,11 @@
\section{\class{wxScrollEvent}}\label{wxscrollevent} \section{\class{wxScrollEvent}}\label{wxscrollevent}
A scroll event holds information about events sent from stand-alone scrollbars, A scroll event holds information about events sent from stand-alone
spin-buttons and sliders - starting from wxWindows 2.1, scrolled windows send the scrollbars, spin-buttons and sliders. Note that starting from wxWindows 2.1,
\helpref{wxScrollWinEvent}{wxscrollwinevent} which does not derive from scrolled windows send the \helpref{wxScrollWinEvent}{wxscrollwinevent} which
wxCommandEvent, but from wxEvent directly. does not derive from wxCommandEvent, but from wxEvent directly - don't confuse
these two kinds of events and use the event table macros mentioned below only
for the scrollbar-like controls.
\wxheading{Derived from} \wxheading{Derived from}
@@ -17,10 +19,12 @@ wxCommandEvent, but from wxEvent directly.
\wxheading{Event table macros} \wxheading{Event table macros}
To process a scroll event, use these event handler macros to direct input to member To process a scroll event, use these event handler macros to direct input to
functions that take a wxScrollEvent argument. You can use EVT\_COMMAND\_SCROLL... macros member functions that take a wxScrollEvent argument. You can use
with window IDs for when intercepting scroll events from controls, or EVT\_SCROLL... macros {\tt EVT\_COMMAND\_SCROLL...} macros with window IDs for when intercepting
without window IDs for intercepting scroll events from the receiving window. scroll events from controls, or {\tt EVT\_SCROLL...} macros without window IDs
for intercepting scroll events from the receiving window - except for this,
the macros behave exactly the same
\twocolwidtha{7cm} \twocolwidtha{7cm}
\begin{twocollist}\itemsep=0pt \begin{twocollist}\itemsep=0pt
@@ -43,6 +47,7 @@ sent as the user drags the thumtrack).}
\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_PAGEDOWN(id, func)}}{Process wxEVT\_SCROLL\_PAGEDOWN page down events.} \twocolitem{{\bf EVT\_COMMAND\_SCROLL\_PAGEDOWN(id, func)}}{Process wxEVT\_SCROLL\_PAGEDOWN page down events.}
\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_THUMBTRACK(id, func)}}{Process wxEVT\_SCROLL\_THUMBTRACK thumbtrack events (frequent events \twocolitem{{\bf EVT\_COMMAND\_SCROLL\_THUMBTRACK(id, func)}}{Process wxEVT\_SCROLL\_THUMBTRACK thumbtrack events (frequent events
sent as the user drags the thumtrack).} sent as the user drags the thumtrack).}
\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_THUMBRELEASE(func)}}{Process wxEVT\_SCROLL\_THUMBRELEASE thumb release events.}
\end{twocollist}% \end{twocollist}%
\wxheading{Remarks} \wxheading{Remarks}