]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gauge.tex
Some doc changes
[wxWidgets.git] / docs / latex / wx / gauge.tex
CommitLineData
a660d684
KB
1\section{\class{wxGauge}}\label{wxgauge}
2
3A gauge is a horizontal or vertical bar which shows a quantity (often time).
4There are no user commands for the gauge.
5
6\wxheading{Derived from}
7
8\helpref{wxControl}{wxcontrol}\\
9\helpref{wxWindow}{wxwindow}\\
10\helpref{wxEvtHandler}{wxEvtHandler}\\
11\helpref{wxObject}{wxobject}
12
954b8ae6
JS
13\wxheading{Include files}
14
15<wx/gauge.h>
16
a660d684
KB
17\wxheading{Window styles}
18
19\twocolwidtha{5cm}
20\begin{twocollist}\itemsep=0pt
21\twocolitem{\windowstyle{wxGA\_HORIZONTAL}}{Creates a horizontal gauge.}
22\twocolitem{\windowstyle{wxGA\_VERTICAL}}{Creates a vertical gauge.}
23\twocolitem{\windowstyle{wxGA\_PROGRESSBAR}}{Under Windows 95, creates a horizontal progress bar.}
24\end{twocollist}
25
26See also \helpref{window styles overview}{windowstyles}.
27
5de76427
JS
28\wxheading{Event handling}
29
30wxGauge is read-only so generates no events.
31
a660d684
KB
32\wxheading{See also}
33
34\helpref{wxSlider}{wxslider}, \helpref{wxScrollBar}{wxscrollbar}
35
36\latexignore{\rtfignore{\wxheading{Members}}}
37
38\membersection{wxGauge::wxGauge}\label{wxgaugeconstr}
39
40\func{}{wxGauge}{\void}
41
42Default constructor.
43
eaaa6a06
JS
44\func{}{wxGauge}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
45\param{int}{ range}, \param{const wxPoint\& }{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp
46\param{long}{ style = wxGA\_HORIZONTAL}, \param{const wxValidator\& }{validator = wxDefaultValidator}, \param{const wxString\& }{name = ``gauge"}}
a660d684
KB
47
48Constructor, creating and showing a gauge.
49
50\wxheading{Parameters}
51
52\docparam{parent}{Window parent.}
53
54\docparam{id}{Window identifier.}
55
56\docparam{range}{Integer range (maximum value) of the gauge.}
57
58\docparam{pos}{Window position.}
59
60\docparam{size}{Window size.}
61
62\docparam{style}{Gauge style. See \helpref{wxGauge}{wxgauge}.}
63
64\docparam{name}{Window name.}
65
66\wxheading{Remarks}
67
68Under Windows 95, there are two different styles of gauge: normal gauge, and progress bar (when
69the {\bf wxGA\_PROGRESSBAR} style is used). A progress bar is always horizontal.
70
71\wxheading{See also}
72
73\helpref{wxGauge::Create}{wxgaugecreate}
74
75\membersection{wxGauge::\destruct{wxGauge}}
76
77\func{}{\destruct{wxGauge}}{\void}
78
79Destructor, destroying the gauge.
80
81\membersection{wxGauge::Create}\label{wxgaugecreate}
82
eaaa6a06
JS
83\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
84\param{int}{ range}, \param{const wxPoint\& }{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp
85\param{long}{ style = wxGA\_HORIZONTAL}, \param{const wxValidator\& }{validator = wxDefaultValidator}, \param{const wxString\& }{name = ``gauge"}}
a660d684
KB
86
87Creates the gauge for two-step construction. See \helpref{wxGauge::wxGauge}{wxgaugeconstr}\rtfsp
88for further details.
89
90\membersection{wxGauge::GetBezelFace}\label{wxgaugegetbezelface}
91
92\constfunc{int}{GetBezelFace}{\void}
93
94Returns the width of the 3D bezel face.
95
96\wxheading{Remarks}
97
98Windows only, not for {\bf wxGA\_PROGRESSBAR}.
99
100\wxheading{See also}
101
102\helpref{wxGauge::SetBezelFace}{wxgaugesetbezelface}
103
104\membersection{wxGauge::GetRange}\label{wxgaugegetrange}
105
106\constfunc{int}{GetRange}{\void}
107
108Returns the maximum position of the gauge.
109
110\wxheading{See also}
111
112\helpref{wxGauge::SetRange}{wxgaugesetrange}
113
114\membersection{wxGauge::GetShadowWidth}\label{wxgaugegetshadowwidth}
115
116\constfunc{int}{GetShadowWidth}{\void}
117
118Returns the 3D shadow margin width.
119
120\wxheading{Remarks}
121
122Windows only, not for {\bf wxGA\_PROGRESSBAR}.
123
124\wxheading{See also}
125
126\helpref{wxGauge::SetShadowWidth}{wxgaugesetshadowwidth}
127
128\membersection{wxGauge::GetValue}\label{wxgaugegetvalue}
129
130\constfunc{int}{GetValue}{\void}
131
132Returns the current position of the gauge.
133
134\wxheading{See also}
135
136\helpref{wxGauge::SetValue}{wxgaugesetvalue}
137
138\membersection{wxGauge::SetBezelFace}\label{wxgaugesetbezelface}
139
eaaa6a06 140\func{void}{SetBezelFace}{\param{int }{width}}
a660d684
KB
141
142Sets the 3D bezel face width.
143
144\wxheading{Remarks}
145
146Windows only, not for {\bf wxGA\_PROGRESSBAR}.
147
148\wxheading{See also}
149
150\helpref{wxGauge::GetBezelFace}{wxgaugegetbezelface}
151
152\membersection{wxGauge::SetRange}\label{wxgaugesetrange}
153
eaaa6a06 154\func{void}{SetRange}{\param{int }{range}}
a660d684
KB
155
156Sets the range (maximum value) of the gauge.
157
158\wxheading{See also}
159
160\helpref{wxGauge::GetRange}{wxgaugegetrange}
161
162\membersection{wxGauge::SetShadowWidth}\label{wxgaugesetshadowwidth}
163
eaaa6a06 164\func{void}{SetShadowWidth}{\param{int }{width}}
a660d684
KB
165
166Sets the 3D shadow width.
167
168\wxheading{Remarks}
169
170Windows only, not for {\bf wxGA\_PROGRESSBAR}.
171
172\membersection{wxGauge::SetValue}\label{wxgaugesetvalue}
173
eaaa6a06 174\func{void}{SetValue}{\param{int }{pos}}
a660d684
KB
175
176Sets the position of the gauge.
177
178\wxheading{Parameters}
179
180\docparam{pos}{Position for the gauge level.}
181
182\wxheading{See also}
183
184\helpref{wxGauge::GetValue}{wxgaugegetvalue}
185
186