.\" This is a wxWidgets manpage page generated from the XML docs .TH wxScrollEvent 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxScrollEvent \- A scroll event from sliders, stand-alone scrollbars and spin buttons .SH DESCRIPTION A scroll event holds information about events sent from stand-alone scrollbars and sliders . Note that starting from wxWidgets 2.1, scrolled windows send the 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. .SH REMARKS Note that unless specifying a scroll control identifier, you will need to test for scrollbar orientation with wxScrollEvent::GetOrientation , since horizontal and vertical scroll events are processed using the same event handler. .SH "PARENTS" wxCommandEvent wxEvent wxObject .SH "INCLUDE FILES" wx/event.h .SH MEMBERS .SS wxScrollEvent (WXTYPE commandType = 0int id = 0int pos = 0int orientation = 0) Constructor. .SS int GetOrientation () Returns wxHORIZONTAL or wxVERTICAL, depending on the orientation of the scrollbar. .SS int GetPosition () Returns the position of the scrollbar. .SH "SEE ALSO" wxCommandEvent wxEvent wxObject wxScrollBar wxSlider wxSpinButton wxScrollWinEvent Event handling overview .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.