]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/scrolevt.tex
Faster Deselect
[wxWidgets.git] / docs / latex / wx / scrolevt.tex
... / ...
CommitLineData
1\section{\class{wxScrollEvent}}\label{wxscrollevent}
2
3A scroll event holds information about events sent from stand-alone
4\helpref{scrollbars}{wxscrollbar} and \helpref{sliders}{wxslider}. Note that
5starting from wxWidgets 2.1, scrolled windows send the
6\helpref{wxScrollWinEvent}{wxscrollwinevent} which does not derive from
7wxCommandEvent, but from wxEvent directly - don't confuse these two kinds of
8events and use the event table macros mentioned below only for the
9scrollbar-like controls.
10
11\wxheading{Derived from}
12
13\helpref{wxCommandEvent}{wxcommandevent}\\
14\helpref{wxEvent}{wxevent}\\
15\helpref{wxObject}{wxobject}
16
17\wxheading{Include files}
18
19<wx/event.h>
20
21\input scrolevt.inc
22
23\wxheading{Remarks}
24
25Note that unless specifying a scroll control identifier, you will need to test for scrollbar
26orientation with \helpref{wxScrollEvent::GetOrientation}{wxscrolleventgetorientation}, since
27horizontal and vertical scroll events are processed using the same event handler.
28
29\wxheading{See also}
30
31\helpref{wxScrollBar}{wxscrollbar}, \helpref{wxSlider}{wxslider}, \helpref{wxSpinButton}{wxspinbutton}, \\
32\helpref{wxScrollWinEvent}{wxscrollwinevent}, \helpref{Event handling overview}{eventhandlingoverview}
33
34\latexignore{\rtfignore{\wxheading{Members}}}
35
36\membersection{wxScrollEvent::wxScrollEvent}\label{wxscrolleventctor}
37
38\func{}{wxScrollEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}, \param{int}{ pos = 0},
39\rtfsp\param{int}{ orientation = 0}}
40
41Constructor.
42
43\membersection{wxScrollEvent::GetOrientation}\label{wxscrolleventgetorientation}
44
45\constfunc{int}{GetOrientation}{\void}
46
47Returns wxHORIZONTAL or wxVERTICAL, depending on the orientation of the scrollbar.
48
49\membersection{wxScrollEvent::GetPosition}\label{wxscrolleventgetposition}
50
51\constfunc{int}{GetPosition}{\void}
52
53Returns the position of the scrollbar.
54