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
}.
24 \wxheading{Event handling
}
26 wxGauge is read-only so generates no events.
30 \helpref{wxSlider
}{wxslider
},
\helpref{wxScrollBar
}{wxscrollbar
}
32 \latexignore{\rtfignore{\wxheading{Members
}}}
34 \membersection{wxGauge::wxGauge
}\label{wxgaugeconstr
}
36 \func{}{wxGauge
}{\void}
40 \func{}{wxGauge
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
41 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
42 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
44 Constructor, creating and showing a gauge.
46 \wxheading{Parameters
}
48 \docparam{parent
}{Window parent.
}
50 \docparam{id
}{Window identifier.
}
52 \docparam{range
}{Integer range (maximum value) of the gauge.
}
54 \docparam{pos
}{Window position.
}
56 \docparam{size
}{Window size.
}
58 \docparam{style
}{Gauge style. See
\helpref{wxGauge
}{wxgauge
}.
}
60 \docparam{name
}{Window name.
}
64 Under Windows
95, there are two different styles of gauge: normal gauge, and progress bar (when
65 the
{\bf wxGA
\_PROGRESSBAR} style is used). A progress bar is always horizontal.
69 \helpref{wxGauge::Create
}{wxgaugecreate
}
71 \membersection{wxGauge::
\destruct{wxGauge
}}
73 \func{}{\destruct{wxGauge
}}{\void}
75 Destructor, destroying the gauge.
77 \membersection{wxGauge::Create
}\label{wxgaugecreate
}
79 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
80 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
81 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
83 Creates the gauge for two-step construction. See
\helpref{wxGauge::wxGauge
}{wxgaugeconstr
}\rtfsp
86 \membersection{wxGauge::GetBezelFace
}\label{wxgaugegetbezelface
}
88 \constfunc{int
}{GetBezelFace
}{\void}
90 Returns the width of the
3D bezel face.
94 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
98 \helpref{wxGauge::SetBezelFace
}{wxgaugesetbezelface
}
100 \membersection{wxGauge::GetRange
}\label{wxgaugegetrange
}
102 \constfunc{int
}{GetRange
}{\void}
104 Returns the maximum position of the gauge.
108 \helpref{wxGauge::SetRange
}{wxgaugesetrange
}
110 \membersection{wxGauge::GetShadowWidth
}\label{wxgaugegetshadowwidth
}
112 \constfunc{int
}{GetShadowWidth
}{\void}
114 Returns the
3D shadow margin width.
118 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
122 \helpref{wxGauge::SetShadowWidth
}{wxgaugesetshadowwidth
}
124 \membersection{wxGauge::GetValue
}\label{wxgaugegetvalue
}
126 \constfunc{int
}{GetValue
}{\void}
128 Returns the current position of the gauge.
132 \helpref{wxGauge::SetValue
}{wxgaugesetvalue
}
134 \membersection{wxGauge::SetBezelFace
}\label{wxgaugesetbezelface
}
136 \func{void
}{SetBezelFace
}{\param{int
}{width
}}
138 Sets the
3D bezel face width.
142 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
146 \helpref{wxGauge::GetBezelFace
}{wxgaugegetbezelface
}
148 \membersection{wxGauge::SetRange
}\label{wxgaugesetrange
}
150 \func{void
}{SetRange
}{\param{int
}{range
}}
152 Sets the range (maximum value) of the gauge.
156 \helpref{wxGauge::GetRange
}{wxgaugegetrange
}
158 \membersection{wxGauge::SetShadowWidth
}\label{wxgaugesetshadowwidth
}
160 \func{void
}{SetShadowWidth
}{\param{int
}{width
}}
162 Sets the
3D shadow width.
166 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
168 \membersection{wxGauge::SetValue
}\label{wxgaugesetvalue
}
170 \func{void
}{SetValue
}{\param{int
}{pos
}}
172 Sets the position of the gauge.
174 \wxheading{Parameters
}
176 \docparam{pos
}{Position for the gauge level.
}
180 \helpref{wxGauge::GetValue
}{wxgaugegetvalue
}