1 \section{\class{wxGauge
}}\label{wxgauge
}
3 A gauge is a horizontal or vertical bar which shows a quantity (often time).
4 There are no user commands for the gauge.
6 \wxheading{Derived from
}
8 \helpref{wxControl
}{wxcontrol
}\\
9 \helpref{wxWindow
}{wxwindow
}\\
10 \helpref{wxEvtHandler
}{wxevthandler
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \wxheading{Window styles
}
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}}{Obsolete, doesn't do anything any more}
24 \twocolitem{\windowstyle{wxGA
\_SMOOTH}}{Creates smooth progress bar with one pixel wide update step (not supported by all platforms).
}
27 See also
\helpref{window styles overview
}{windowstyles
}.
29 \wxheading{Event handling
}
31 wxGauge is read-only so generates no events.
35 \helpref{wxSlider
}{wxslider
},
\helpref{wxScrollBar
}{wxscrollbar
}
37 \latexignore{\rtfignore{\wxheading{Members
}}}
40 \membersection{wxGauge::wxGauge
}\label{wxgaugeconstr
}
42 \func{}{wxGauge
}{\void}
46 \func{}{wxGauge
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
47 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
48 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
50 Constructor, creating and showing a gauge.
52 \wxheading{Parameters
}
54 \docparam{parent
}{Window parent.
}
56 \docparam{id
}{Window identifier.
}
58 \docparam{range
}{Integer range (maximum value) of the gauge.
}
60 \docparam{pos
}{Window position.
}
62 \docparam{size
}{Window size.
}
64 \docparam{style
}{Gauge style. See
\helpref{wxGauge
}{wxgauge
}.
}
66 \docparam{name
}{Window name.
}
70 \helpref{wxGauge::Create
}{wxgaugecreate
}
73 \membersection{wxGauge::
\destruct{wxGauge
}}
75 \func{}{\destruct{wxGauge
}}{\void}
77 Destructor, destroying the gauge.
80 \membersection{wxGauge::Create
}\label{wxgaugecreate
}
82 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
83 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
84 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
86 Creates the gauge for two-step construction. See
\helpref{wxGauge::wxGauge
}{wxgaugeconstr
}\rtfsp
90 \membersection{wxGauge::GetBezelFace
}\label{wxgaugegetbezelface
}
92 \constfunc{int
}{GetBezelFace
}{\void}
94 Returns the width of the
3D bezel face.
98 This method is not implemented (returns $
0$) for most platforms.
102 \helpref{wxGauge::SetBezelFace
}{wxgaugesetbezelface
}
105 \membersection{wxGauge::GetRange
}\label{wxgaugegetrange
}
107 \constfunc{int
}{GetRange
}{\void}
109 Returns the maximum position of the gauge.
113 This method is not implemented (doesn't do anything) for most platforms.
117 \helpref{wxGauge::SetRange
}{wxgaugesetrange
}
120 \membersection{wxGauge::GetShadowWidth
}\label{wxgaugegetshadowwidth
}
122 \constfunc{int
}{GetShadowWidth
}{\void}
124 Returns the
3D shadow margin width.
128 This method is not implemented (returns $
0$) for most platforms.
132 \helpref{wxGauge::SetShadowWidth
}{wxgaugesetshadowwidth
}
135 \membersection{wxGauge::GetValue
}\label{wxgaugegetvalue
}
137 \constfunc{int
}{GetValue
}{\void}
139 Returns the current position of the gauge.
143 \helpref{wxGauge::SetValue
}{wxgaugesetvalue
}
146 \membersection{wxGauge::IsVertical
}\label{wxgaugeisvertical
}
148 \constfunc{bool
}{IsVertical
}{\void}
150 Returns
\true if the gauge is vertical (has
\texttt{wxGA
\_VERTICAL} style) and
154 \membersection{wxGauge::SetBezelFace
}\label{wxgaugesetbezelface
}
156 \func{void
}{SetBezelFace
}{\param{int
}{width
}}
158 Sets the
3D bezel face width.
162 This method is not implemented (doesn't do anything) for most platforms.
166 \helpref{wxGauge::GetBezelFace
}{wxgaugegetbezelface
}
169 \membersection{wxGauge::SetRange
}\label{wxgaugesetrange
}
171 \func{void
}{SetRange
}{\param{int
}{range
}}
173 Sets the range (maximum value) of the gauge.
177 \helpref{wxGauge::GetRange
}{wxgaugegetrange
}
180 \membersection{wxGauge::SetShadowWidth
}\label{wxgaugesetshadowwidth
}
182 \func{void
}{SetShadowWidth
}{\param{int
}{width
}}
184 Sets the
3D shadow width.
188 This method is not implemented (doesn't do anything) for most platforms.
191 \membersection{wxGauge::SetValue
}\label{wxgaugesetvalue
}
193 \func{void
}{SetValue
}{\param{int
}{pos
}}
195 Sets the position of the gauge.
197 \wxheading{Parameters
}
199 \docparam{pos
}{Position for the gauge level.
}
203 \helpref{wxGauge::GetValue
}{wxgaugegetvalue
}