]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/spinbutt.tex
more LaTeX error fixes
[wxWidgets.git] / docs / latex / wx / spinbutt.tex
CommitLineData
a660d684
KB
1\section{\class{wxSpinButton}}\label{wxspinbutton}
2
f6bcfd97
BP
3A wxSpinButton has two small up and down (or left and right) arrow buttons. It
4is often used next to a text control for increment and decrementing a value.
5Portable programs should try to use \helpref{wxSpinCtrl}{wxspinctrl} instead
9043437f
VZ
6as wxSpinButton is not implemented for all platforms but wxSpinCtrl is as it
7degenerates to a simple \helpref{wxTextCtrl}{wxtextctrl} on such platforms.
a660d684 8
3ca6a5f0 9{\bf NB:} the range supported by this control (and wxSpinCtrl) depends on the
73c62f54
VZ
10platform but is at least {\tt -0x8000} to {\tt 0x7fff}. Under GTK and
11Win32 with sufficiently new version of {\tt comctrl32.dll} (at least 4.71 is
12required, 5.80 is recommended) the full 32 bit range is supported.
3ca6a5f0 13
a660d684
KB
14\wxheading{Derived from}
15
16\helpref{wxControl}{wxcontrol}\\
17\helpref{wxWindow}{wxwindow}\\
18\helpref{wxEvtHandler}{wxevthandler}\\
19\helpref{wxObject}{wxobject}
20
f6bcfd97
BP
21\wxheading{See also}
22
23\helpref{wxSpinCtrl}{wxspinctrl}
24
954b8ae6
JS
25\wxheading{Include files}
26
27<wx/spinbutt.h>
28
a7af285d
VZ
29\wxheading{Library}
30
31\helpref{wxCore}{librarieslist}
32
a660d684
KB
33\wxheading{Window styles}
34
35\twocolwidtha{5cm}
36\begin{twocollist}\itemsep=0pt
f6bcfd97 37\twocolitem{\windowstyle{wxSP\_HORIZONTAL}}{Specifies a horizontal spin button (note that this style is not supported in wxGTK).}
a660d684 38\twocolitem{\windowstyle{wxSP\_VERTICAL}}{Specifies a vertical spin button.}
01a01d10 39\twocolitem{\windowstyle{wxSP\_ARROW\_KEYS}}{The user can use arrow keys to change the value.}
a660d684
KB
40\twocolitem{\windowstyle{wxSP\_WRAP}}{The value wraps at the minimum and maximum.}
41\end{twocollist}
42
43See also \helpref{window styles overview}{windowstyles}.
44
73c62f54 45\input spinevt.inc
a660d684
KB
46
47\wxheading{See also}
48
49\helpref{Event handling overview}{eventhandlingoverview}
50
51\latexignore{\rtfignore{\wxheading{Members}}}
52
39275175 53\membersection{wxSpinButton::wxSpinButton}\label{wxspinbuttonctor}
a660d684
KB
54
55\func{}{wxSpinButton}{\void}
56
57Default constructor.
58
eaaa6a06 59\func{}{wxSpinButton}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id},\rtfsp
a660d684 60\param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
35e47dec 61\param{long}{ style = wxSP\_HORIZONTAL},\rtfsp
a660d684
KB
62\param{const wxString\& }{name = ``spinButton"}}
63
64Constructor, creating and showing a spin button.
65
66\wxheading{Parameters}
67
68\docparam{parent}{Parent window. Must not be NULL.}
69
70\docparam{id}{Window identifier. A value of -1 indicates a default value.}
71
72\docparam{pos}{Window position. If the position (-1, -1) is specified then a default position is chosen.}
73
74\docparam{size}{Window size. If the default size (-1, -1) is specified then a default size is chosen.}
75
76\docparam{style}{Window style. See \helpref{wxSpinButton}{wxspinbutton}.}
77
a660d684
KB
78\docparam{name}{Window name.}
79
80\wxheading{See also}
81
35e47dec 82\helpref{wxSpinButton::Create}{wxspinbuttoncreate}
a660d684 83
39275175 84\membersection{wxSpinButton::\destruct{wxSpinButton}}\label{wxspinbuttondtor}
a660d684
KB
85
86\func{void}{\destruct{wxSpinButton}}{\void}
87
73c62f54 88Destructor, destroys the spin button control.
a660d684
KB
89
90\membersection{wxSpinButton::Create}\label{wxspinbuttoncreate}
91
eaaa6a06 92\func{bool}{Create}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id},\rtfsp
a660d684 93\param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
35e47dec 94\param{long}{ style = wxSP\_HORIZONTAL},\rtfsp
a660d684
KB
95\param{const wxString\& }{name = ``spinButton"}}
96
97Scrollbar creation function called by the spin button constructor.
39275175 98See \helpref{wxSpinButton::wxSpinButton}{wxspinbuttonctor} for details.
a660d684
KB
99
100\membersection{wxSpinButton::GetMax}\label{wxspinbuttongetmax}
101
102\constfunc{int}{GetMax}{\void}
103
f6bcfd97 104Returns the maximum permissible value.
a660d684
KB
105
106\wxheading{See also}
107
108\helpref{wxSpinButton::SetRange}{wxspinbuttonsetrange}
109
110\membersection{wxSpinButton::GetMin}\label{wxspinbuttongetmin}
111
112\constfunc{int}{GetMin}{\void}
113
f6bcfd97 114Returns the minimum permissible value.
a660d684
KB
115
116\wxheading{See also}
117
118\helpref{wxSpinButton::SetRange}{wxspinbuttonsetrange}
119
120\membersection{wxSpinButton::GetValue}\label{wxspinbuttongetvalue}
121
122\constfunc{int}{GetValue}{\void}
123
124Returns the current spin button value.
125
126\wxheading{See also}
127
128\helpref{wxSpinButton::SetValue}{wxspinbuttonsetvalue}
129
130\membersection{wxSpinButton::SetRange}\label{wxspinbuttonsetrange}
131
eaaa6a06 132\func{void}{SetRange}{\param{int}{ min}, \param{int}{ max}}
a660d684
KB
133
134Sets the range of the spin button.
135
136\wxheading{Parameters}
137
138\docparam{min}{The minimum value for the spin button.}
139
140\docparam{max}{The maximum value for the spin button.}
141
142\wxheading{See also}
143
144\helpref{wxSpinButton::GetMin}{wxspinbuttongetmin}, \helpref{wxSpinButton::GetMax}{wxspinbuttongetmax}
145
146\membersection{wxSpinButton::SetValue}\label{wxspinbuttonsetvalue}
147
eaaa6a06 148\func{void}{SetValue}{\param{int}{ value}}
a660d684
KB
149
150Sets the value of the spin button.
151
152\wxheading{Parameters}
153
154\docparam{value}{The value for the spin button.}
155
156\wxheading{See also}
157
158\helpref{wxSpinButton::GetValue}{wxspinbuttongetvalue}
159