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}}{Under Windows
95, creates a horizontal progress bar.
}
26 See also
\helpref{window styles overview
}{windowstyles
}.
28 \wxheading{Event handling
}
30 wxGauge is read-only so generates no events.
34 \helpref{wxSlider
}{wxslider
},
\helpref{wxScrollBar
}{wxscrollbar
}
36 \latexignore{\rtfignore{\wxheading{Members
}}}
38 \membersection{wxGauge::wxGauge
}\label{wxgaugeconstr
}
40 \func{}{wxGauge
}{\void}
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"
}}
48 Constructor, creating and showing a gauge.
50 \wxheading{Parameters
}
52 \docparam{parent
}{Window parent.
}
54 \docparam{id
}{Window identifier.
}
56 \docparam{range
}{Integer range (maximum value) of the gauge.
}
58 \docparam{pos
}{Window position.
}
60 \docparam{size
}{Window size.
}
62 \docparam{style
}{Gauge style. See
\helpref{wxGauge
}{wxgauge
}.
}
64 \docparam{name
}{Window name.
}
68 Under Windows
95, there are two different styles of gauge: normal gauge, and progress bar (when
69 the
{\bf wxGA
\_PROGRESSBAR} style is used). A progress bar is always horizontal.
73 \helpref{wxGauge::Create
}{wxgaugecreate
}
75 \membersection{wxGauge::
\destruct{wxGauge
}}
77 \func{}{\destruct{wxGauge
}}{\void}
79 Destructor, destroying the gauge.
81 \membersection{wxGauge::Create
}\label{wxgaugecreate
}
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"
}}
87 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 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
102 \helpref{wxGauge::SetBezelFace
}{wxgaugesetbezelface
}
104 \membersection{wxGauge::GetRange
}\label{wxgaugegetrange
}
106 \constfunc{int
}{GetRange
}{\void}
108 Returns the maximum position of the gauge.
112 \helpref{wxGauge::SetRange
}{wxgaugesetrange
}
114 \membersection{wxGauge::GetShadowWidth
}\label{wxgaugegetshadowwidth
}
116 \constfunc{int
}{GetShadowWidth
}{\void}
118 Returns the
3D shadow margin width.
122 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
126 \helpref{wxGauge::SetShadowWidth
}{wxgaugesetshadowwidth
}
128 \membersection{wxGauge::GetValue
}\label{wxgaugegetvalue
}
130 \constfunc{int
}{GetValue
}{\void}
132 Returns the current position of the gauge.
136 \helpref{wxGauge::SetValue
}{wxgaugesetvalue
}
138 \membersection{wxGauge::SetBezelFace
}\label{wxgaugesetbezelface
}
140 \func{void
}{SetBezelFace
}{\param{int
}{width
}}
142 Sets the
3D bezel face width.
146 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
150 \helpref{wxGauge::GetBezelFace
}{wxgaugegetbezelface
}
152 \membersection{wxGauge::SetRange
}\label{wxgaugesetrange
}
154 \func{void
}{SetRange
}{\param{int
}{range
}}
156 Sets the range (maximum value) of the gauge.
160 \helpref{wxGauge::GetRange
}{wxgaugegetrange
}
162 \membersection{wxGauge::SetShadowWidth
}\label{wxgaugesetshadowwidth
}
164 \func{void
}{SetShadowWidth
}{\param{int
}{width
}}
166 Sets the
3D shadow width.
170 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
172 \membersection{wxGauge::SetValue
}\label{wxgaugesetvalue
}
174 \func{void
}{SetValue
}{\param{int
}{pos
}}
176 Sets the position of the gauge.
178 \wxheading{Parameters
}
180 \docparam{pos
}{Position for the gauge level.
}
184 \helpref{wxGauge::GetValue
}{wxgaugegetvalue
}