1 \section{\class{wxScrollEvent
}}\label{wxscrollevent
}
3 A scroll event holds information about events sent from stand-alone
4 \helpref{scrollbars
}{wxscrollbar
} and
\helpref{sliders
}{wxslider
}. Note that
5 starting from wxWidgets
2.1, scrolled windows send the
6 \helpref{wxScrollWinEvent
}{wxscrollwinevent
} which does not derive from
7 wxCommandEvent, but from wxEvent directly - don't confuse these two kinds of
8 events and use the event table macros mentioned below only for the
9 scrollbar-like controls.
11 \wxheading{Derived from
}
13 \helpref{wxCommandEvent
}{wxcommandevent
}\\
14 \helpref{wxEvent
}{wxevent
}\\
15 \helpref{wxObject
}{wxobject
}
17 \wxheading{Include files
}
23 \helpref{wxCore
}{librarieslist
}
29 Note that unless specifying a scroll control identifier, you will need to test for scrollbar
30 orientation with
\helpref{wxScrollEvent::GetOrientation
}{wxscrolleventgetorientation
}, since
31 horizontal and vertical scroll events are processed using the same event handler.
35 \helpref{wxScrollBar
}{wxscrollbar
},
\helpref{wxSlider
}{wxslider
},
\helpref{wxSpinButton
}{wxspinbutton
}, \\
36 \helpref{wxScrollWinEvent
}{wxscrollwinevent
},
\helpref{Event handling overview
}{eventhandlingoverview
}
38 \latexignore{\rtfignore{\wxheading{Members
}}}
40 \membersection{wxScrollEvent::wxScrollEvent
}\label{wxscrolleventctor
}
42 \func{}{wxScrollEvent
}{\param{WXTYPE
}{commandType =
0},
\param{int
}{id =
0},
\param{int
}{ pos =
0},
43 \rtfsp\param{int
}{ orientation =
0}}
47 \membersection{wxScrollEvent::GetOrientation
}\label{wxscrolleventgetorientation
}
49 \constfunc{int
}{GetOrientation
}{\void}
51 Returns wxHORIZONTAL or wxVERTICAL, depending on the orientation of the scrollbar.
53 \membersection{wxScrollEvent::GetPosition
}\label{wxscrolleventgetposition
}
55 \constfunc{int
}{GetPosition
}{\void}
57 Returns the position of the scrollbar.