.\" This is a wxWidgets manpage page generated from the XML docs .TH wxSpinCtrl 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxSpinCtrl \- A spin control - i.e. spin button and text control .SH DESCRIPTION wxSpinCtrl combines wxTextCtrl and wxSpinButton in one control. .SH "PARENTS" wxControl wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/spinctrl.h .SH MEMBERS .SS wxSpinCtrl () Default constructor. .SS wxSpinCtrl (wxWindow* parentwxWindowID id = -1const wxString& value = wxEmptyStringconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = wxSP_ARROW_KEYSint min = 0int max = 100int initial = 0const wxString& name = _T("wxSpinCtrl")) Constructor, creating and showing a spin control. .SS bool Create (wxWindow* parentwxWindowID id = -1const wxString& value = wxEmptyStringconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = wxSP_ARROW_KEYSint min = 0int max = 100int initial = 0const wxString& name = _T("wxSpinCtrl")) Creation function called by the spin control constructor. See wxSpinCtrl::wxSpinCtrl for details. .SS void SetValue (const wxString& text) .SS void SetValue (int value) Sets the value of the spin control. .SS int GetValue () Gets the value of the spin control. .SS void SetRange (int minValint maxVal) Sets range of allowable values. .SS void SetSelection (long fromlong to) Select the text in the text part of the control between positions from (inclusive) and to (exclusive). This is similar to wxTextCtrl::SetSelection . NB: this is currently only implemented for Windows and generic versions of the control. .SS int GetMin () Gets minimal allowable value. .SS int GetMax () Gets maximal allowable value. .SH "WINDOW STYLES" .SS wxSP_ARROW_KEYS The user can use arrow keys to change the value. .SS wxSP_WRAP The value wraps at the minimum and maximum. .SH EVENTS .SS EVT_SPINCTRL(id, func) Generated whenever the numeric value of the spinctrl is updated .SH "SEE ALSO" wxControl wxWindow wxEvtHandler wxObject Event handling overview , wxSpinButton , wxControl .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.