1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxScrollEvent}}\label{wxscrollevent}
|
|
|
|
|
2001-03-03 19:21:59 -05:00
|
|
|
A scroll event holds information about events sent from stand-alone
|
2002-07-09 19:34:31 -04:00
|
|
|
\helpref{scrollbars}{wxscrollbar} and \helpref{sliders}{wxslider}. 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.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxCommandEvent}{wxcommandevent}\\
|
|
|
|
\helpref{wxEvent}{wxevent}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/event.h>
|
|
|
|
|
2002-07-09 19:34:31 -04:00
|
|
|
\input scrolevt.inc
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Remarks}
|
|
|
|
|
|
|
|
Note that unless specifying a scroll control identifier, you will need to test for scrollbar
|
|
|
|
orientation with \helpref{wxScrollEvent::GetOrientation}{wxscrolleventgetorientation}, since
|
|
|
|
horizontal and vertical scroll events are processed using the same event handler.
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-07-26 10:28:25 -04:00
|
|
|
\helpref{wxScrollBar}{wxscrollbar}, \helpref{wxSlider}{wxslider}, \helpref{wxSpinButton}{wxspinbutton}, \\
|
|
|
|
\helpref{wxScrollWinEvent}{wxscrollwinevent}, \helpref{Event handling overview}{eventhandlingoverview}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxScrollEvent::wxScrollEvent}
|
|
|
|
|
|
|
|
\func{}{wxScrollEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}, \param{int}{ pos = 0},
|
|
|
|
\rtfsp\param{int}{ orientation = 0}}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\membersection{wxScrollEvent::GetOrientation}\label{wxscrolleventgetorientation}
|
|
|
|
|
|
|
|
\constfunc{int}{GetOrientation}{\void}
|
|
|
|
|
|
|
|
Returns wxHORIZONTAL or wxVERTICAL, depending on the orientation of the scrollbar.
|
|
|
|
|
|
|
|
\membersection{wxScrollEvent::GetPosition}\label{wxscrolleventgetposition}
|
|
|
|
|
|
|
|
\constfunc{int}{GetPosition}{\void}
|
|
|
|
|
|
|
|
Returns the position of the scrollbar.
|
|
|
|
|