X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2edb0bdef6238c8c246b6978bc14828b7033d931..1f65137f8de90aba96242d5e44b00dfd0efa4b67:/docs/latex/wx/scrolevt.tex diff --git a/docs/latex/wx/scrolevt.tex b/docs/latex/wx/scrolevt.tex index bcbe34d93a..08149752c6 100644 --- a/docs/latex/wx/scrolevt.tex +++ b/docs/latex/wx/scrolevt.tex @@ -1,11 +1,12 @@ \section{\class{wxScrollEvent}}\label{wxscrollevent} A scroll event holds information about events sent from stand-alone -scrollbars, spin-buttons and sliders. Note that starting from wxWindows 2.1, -scrolled windows send the \helpref{wxScrollWinEvent}{wxscrollwinevent} which -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. +\helpref{scrollbars}{wxscrollbar} and \helpref{sliders}{wxslider}. Note that +starting from wxWidgets 2.1, scrolled windows send the +\helpref{wxScrollWinEvent}{wxscrollwinevent} which 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} @@ -17,38 +18,7 @@ for the scrollbar-like controls. -\wxheading{Event table macros} - -To process a scroll event, use these event handler macros to direct input to -member functions that take a wxScrollEvent argument. You can use -{\tt EVT\_COMMAND\_SCROLL...} macros with window IDs for when intercepting -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} -\begin{twocollist}\itemsep=0pt -\twocolitem{{\bf EVT\_SCROLL(func)}}{Process all scroll events.} -\twocolitem{{\bf EVT\_SCROLL\_TOP(func)}}{Process wxEVT\_SCROLL\_TOP scroll-to-top events.} -\twocolitem{{\bf EVT\_SCROLL\_BOTTOM(func)}}{Process wxEVT\_SCROLL\_TOP scroll-to-bottom events.} -\twocolitem{{\bf EVT\_SCROLL\_LINEUP(func)}}{Process wxEVT\_SCROLL\_LINEUP line up events.} -\twocolitem{{\bf EVT\_SCROLL\_LINEDOWN(func)}}{Process wxEVT\_SCROLL\_LINEDOWN line down events.} -\twocolitem{{\bf EVT\_SCROLL\_PAGEUP(func)}}{Process wxEVT\_SCROLL\_PAGEUP page up events.} -\twocolitem{{\bf EVT\_SCROLL\_PAGEDOWN(func)}}{Process wxEVT\_SCROLL\_PAGEDOWN page down events.} -\twocolitem{{\bf EVT\_SCROLL\_THUMBTRACK(func)}}{Process wxEVT\_SCROLL\_THUMBTRACK thumbtrack events (frequent events -sent as the user drags the thumbtrack).} -\twocolitem{{\bf EVT\_SCROLL\_THUMBRELEASE(func)}}{Process wxEVT\_SCROLL\_THUMBRELEASE thumb release events.} -\twocolitem{{\bf EVT\_COMMAND\_SCROLL(id, func)}}{Process all scroll events.} -\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_TOP(id, func)}}{Process wxEVT\_SCROLL\_TOP scroll-to-top events.} -\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_BOTTOM(id, func)}}{Process wxEVT\_SCROLL\_TOP scroll-to-bottom events.} -\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_LINEUP(id, func)}}{Process wxEVT\_SCROLL\_LINEUP line up events.} -\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_LINEDOWN(id, func)}}{Process wxEVT\_SCROLL\_LINEDOWN line down events.} -\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_PAGEUP(id, func)}}{Process wxEVT\_SCROLL\_PAGEUP page up 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 -sent as the user drags the thumbtrack).} -\twocolitem{{\bf EVT\_COMMAND\_SCROLL\_THUMBRELEASE(func)}}{Process wxEVT\_SCROLL\_THUMBRELEASE thumb release events.} -\end{twocollist}% +\input scrolevt.inc \wxheading{Remarks} @@ -63,7 +33,7 @@ horizontal and vertical scroll events are processed using the same event handler \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxScrollEvent::wxScrollEvent} +\membersection{wxScrollEvent::wxScrollEvent}\label{wxscrolleventctor} \func{}{wxScrollEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}, \param{int}{ pos = 0}, \rtfsp\param{int}{ orientation = 0}}