1998-05-20 14:25:30 +00:00
|
|
|
\section{\class{wxScrollEvent}}\label{wxscrollevent}
|
|
|
|
|
2001-03-04 00:21:59 +00:00
|
|
|
A scroll event holds information about events sent from stand-alone
|
2002-07-09 23:34:31 +00:00
|
|
|
\helpref{scrollbars}{wxscrollbar} and \helpref{sliders}{wxslider}. Note that
|
2004-05-04 08:27:20 +00:00
|
|
|
starting from wxWidgets 2.1, scrolled windows send the
|
2002-07-09 23:34:31 +00:00
|
|
|
\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 14:25:30 +00:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxCommandEvent}{wxcommandevent}\\
|
|
|
|
\helpref{wxEvent}{wxevent}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/event.h>
|
|
|
|
|
2002-07-09 23:34:31 +00:00
|
|
|
\input scrolevt.inc
|
1998-05-20 14:25:30 +00: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 14:28:25 +00:00
|
|
|
\helpref{wxScrollBar}{wxscrollbar}, \helpref{wxSlider}{wxslider}, \helpref{wxSpinButton}{wxspinbutton}, \\
|
|
|
|
\helpref{wxScrollWinEvent}{wxscrollwinevent}, \helpref{Event handling overview}{eventhandlingoverview}
|
1998-05-20 14:25:30 +00: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.
|
|
|
|
|