.\" This is a wxWidgets manpage page generated from the XML docs .TH wxSlider 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxSlider \- A slider that can be dragged by the user .SH DESCRIPTION A slider is a control with a handle which can be pulled back and forth to change the value. On Windows, the track bar control is used. Slider events are handled in the same way as a scrollbar. .SH "PARENTS" wxControl wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/slider.h .SH MEMBERS .SS wxSlider () Default slider. .SS wxSlider (wxWindow* parentwxWindowID idint value int minValueint maxValueconst wxPoint& point = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = wxSL_HORIZONTALconst wxValidator& validator = wxDefaultValidatorconst wxString& name = ``slider") .SS void ~wxSlider () Destructor, destroying the slider. .SS void ClearSel () Clears the selection, for a slider with the wxSL_SELRANGE style. .SS void ClearTicks () Clears the ticks. .SS bool Create (wxWindow* parentwxWindowID idint value int minValueint maxValueconst wxPoint& point = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = wxSL_HORIZONTALconst wxValidator& validator = wxDefaultValidatorconst wxString& name = ``slider") Used for two-step slider construction. See wxSlider::wxSlider for further details. .SS int GetLineSize () Returns the line size. .SS int GetMax () .SS int GetMin () .SS int GetPageSize () Returns the page size. .SS int GetSelEnd () .SS int GetSelStart () .SS int GetThumbLength () Returns the thumb length. .SS int GetTickFreq () Returns the tick frequency. .SS int GetValue () .SS void SetLineSize (int lineSize) Sets the line size for the slider. .SS void SetPageSize (int pageSize) Sets the page size for the slider. .SS void SetRange (int minValueint maxValue) .SS void SetSelection (int startPosint endPos) .SS void SetThumbLength (int len) Sets the slider thumb length. .SS void SetTick (int tickPos) Sets a tick position. .SS void SetTickFreq (int nint pos) Sets the tick mark frequency and position. .SS void SetValue (int value) Sets the slider position. .SH "WINDOW STYLES" .SS wxSL_HORIZONTAL Displays the slider horizontally (this is the default). .SS wxSL_VERTICAL Displays the slider vertically. .SS wxSL_AUTOTICKS Displays tick marks. .SS wxSL_LABELS Displays minimum, maximum and value labels. .SS wxSL_LEFT Displays ticks on the left and forces the slider to be vertical. .SS wxSL_RIGHT Displays ticks on the right and forces the slider to be vertical. .SS wxSL_TOP Displays ticks on the top. .SS wxSL_BOTTOM Displays ticks on the bottom (this is the default). .SS wxSL_SELRANGE Allows the user to select a range on the slider. Windows only. .SS wxSL_INVERSE Inverses the mininum and maximum endpoints on the slider. Not compatible with wxSL_SELRANGE. .SH "SEE ALSO" wxControl wxWindow wxEvtHandler wxObject Event handling overview wxScrollBar .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.