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{Window styles
}
16 \begin{twocollist
}\itemsep=
0pt
17 \twocolitem{\windowstyle{wxGA
\_HORIZONTAL}}{Creates a horizontal gauge.
}
18 \twocolitem{\windowstyle{wxGA
\_VERTICAL}}{Creates a vertical gauge.
}
19 \twocolitem{\windowstyle{wxGA
\_PROGRESSBAR}}{Under Windows
95, creates a horizontal progress bar.
}
22 See also
\helpref{window styles overview
}{windowstyles
}.
26 \helpref{wxSlider
}{wxslider
},
\helpref{wxScrollBar
}{wxscrollbar
}
28 \latexignore{\rtfignore{\wxheading{Members
}}}
30 \membersection{wxGauge::wxGauge
}\label{wxgaugeconstr
}
32 \func{}{wxGauge
}{\void}
36 \func{}{wxGauge
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
37 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
38 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
40 Constructor, creating and showing a gauge.
42 \wxheading{Parameters
}
44 \docparam{parent
}{Window parent.
}
46 \docparam{id
}{Window identifier.
}
48 \docparam{range
}{Integer range (maximum value) of the gauge.
}
50 \docparam{pos
}{Window position.
}
52 \docparam{size
}{Window size.
}
54 \docparam{style
}{Gauge style. See
\helpref{wxGauge
}{wxgauge
}.
}
56 \docparam{name
}{Window name.
}
60 Under Windows
95, there are two different styles of gauge: normal gauge, and progress bar (when
61 the
{\bf wxGA
\_PROGRESSBAR} style is used). A progress bar is always horizontal.
65 \helpref{wxGauge::Create
}{wxgaugecreate
}
67 \membersection{wxGauge::
\destruct{wxGauge
}}
69 \func{}{\destruct{wxGauge
}}{\void}
71 Destructor, destroying the gauge.
73 \membersection{wxGauge::Create
}\label{wxgaugecreate
}
75 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
76 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
77 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
79 Creates the gauge for two-step construction. See
\helpref{wxGauge::wxGauge
}{wxgaugeconstr
}\rtfsp
82 \membersection{wxGauge::GetBezelFace
}\label{wxgaugegetbezelface
}
84 \constfunc{int
}{GetBezelFace
}{\void}
86 Returns the width of the
3D bezel face.
90 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
94 \helpref{wxGauge::SetBezelFace
}{wxgaugesetbezelface
}
96 \membersection{wxGauge::GetRange
}\label{wxgaugegetrange
}
98 \constfunc{int
}{GetRange
}{\void}
100 Returns the maximum position of the gauge.
104 \helpref{wxGauge::SetRange
}{wxgaugesetrange
}
106 \membersection{wxGauge::GetShadowWidth
}\label{wxgaugegetshadowwidth
}
108 \constfunc{int
}{GetShadowWidth
}{\void}
110 Returns the
3D shadow margin width.
114 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
118 \helpref{wxGauge::SetShadowWidth
}{wxgaugesetshadowwidth
}
120 \membersection{wxGauge::GetValue
}\label{wxgaugegetvalue
}
122 \constfunc{int
}{GetValue
}{\void}
124 Returns the current position of the gauge.
128 \helpref{wxGauge::SetValue
}{wxgaugesetvalue
}
130 \membersection{wxGauge::SetBezelFace
}\label{wxgaugesetbezelface
}
132 \func{void
}{SetBezelFace
}{\param{int
}{width
}}
134 Sets the
3D bezel face width.
138 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
142 \helpref{wxGauge::GetBezelFace
}{wxgaugegetbezelface
}
144 \membersection{wxGauge::SetRange
}\label{wxgaugesetrange
}
146 \func{void
}{SetRange
}{\param{int
}{range
}}
148 Sets the range (maximum value) of the gauge.
152 \helpref{wxGauge::GetRange
}{wxgaugegetrange
}
154 \membersection{wxGauge::SetShadowWidth
}\label{wxgaugesetshadowwidth
}
156 \func{void
}{SetShadowWidth
}{\param{int
}{width
}}
158 Sets the
3D shadow width.
162 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
164 \membersection{wxGauge::SetValue
}\label{wxgaugesetvalue
}
166 \func{void
}{SetValue
}{\param{int
}{pos
}}
168 Sets the position of the gauge.
170 \wxheading{Parameters
}
172 \docparam{pos
}{Position for the gauge level.
}
176 \helpref{wxGauge::GetValue
}{wxgaugegetvalue
}