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.
}
24 \twocolitem{\windowstyle{wxGA
\_SMOOTH}}{Under Windows
95, creates smooth progress bar with one pixel wide update step.
}
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
}}}
39 \membersection{wxGauge::wxGauge
}\label{wxgaugeconstr
}
41 \func{}{wxGauge
}{\void}
45 \func{}{wxGauge
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
46 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
47 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
49 Constructor, creating and showing a gauge.
51 \wxheading{Parameters
}
53 \docparam{parent
}{Window parent.
}
55 \docparam{id
}{Window identifier.
}
57 \docparam{range
}{Integer range (maximum value) of the gauge.
}
59 \docparam{pos
}{Window position.
}
61 \docparam{size
}{Window size.
}
63 \docparam{style
}{Gauge style. See
\helpref{wxGauge
}{wxgauge
}.
}
65 \docparam{name
}{Window name.
}
69 Under Windows
95, there are two different styles of gauge: normal gauge, and progress bar (when
70 the
{\bf wxGA
\_PROGRESSBAR} style is used). A progress bar is always horizontal.
74 \helpref{wxGauge::Create
}{wxgaugecreate
}
76 \membersection{wxGauge::
\destruct{wxGauge
}}
78 \func{}{\destruct{wxGauge
}}{\void}
80 Destructor, destroying the gauge.
82 \membersection{wxGauge::Create
}\label{wxgaugecreate
}
84 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
85 \param{int
}{ range
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
86 \param{long
}{ style = wxGA
\_HORIZONTAL},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``gauge"
}}
88 Creates the gauge for two-step construction. See
\helpref{wxGauge::wxGauge
}{wxgaugeconstr
}\rtfsp
91 \membersection{wxGauge::GetBezelFace
}\label{wxgaugegetbezelface
}
93 \constfunc{int
}{GetBezelFace
}{\void}
95 Returns the width of the
3D bezel face.
99 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
103 \helpref{wxGauge::SetBezelFace
}{wxgaugesetbezelface
}
105 \membersection{wxGauge::GetRange
}\label{wxgaugegetrange
}
107 \constfunc{int
}{GetRange
}{\void}
109 Returns the maximum position of the gauge.
113 \helpref{wxGauge::SetRange
}{wxgaugesetrange
}
115 \membersection{wxGauge::GetShadowWidth
}\label{wxgaugegetshadowwidth
}
117 \constfunc{int
}{GetShadowWidth
}{\void}
119 Returns the
3D shadow margin width.
123 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
127 \helpref{wxGauge::SetShadowWidth
}{wxgaugesetshadowwidth
}
129 \membersection{wxGauge::GetValue
}\label{wxgaugegetvalue
}
131 \constfunc{int
}{GetValue
}{\void}
133 Returns the current position of the gauge.
137 \helpref{wxGauge::SetValue
}{wxgaugesetvalue
}
139 \membersection{wxGauge::SetBezelFace
}\label{wxgaugesetbezelface
}
141 \func{void
}{SetBezelFace
}{\param{int
}{width
}}
143 Sets the
3D bezel face width.
147 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
151 \helpref{wxGauge::GetBezelFace
}{wxgaugegetbezelface
}
153 \membersection{wxGauge::SetRange
}\label{wxgaugesetrange
}
155 \func{void
}{SetRange
}{\param{int
}{range
}}
157 Sets the range (maximum value) of the gauge.
161 \helpref{wxGauge::GetRange
}{wxgaugegetrange
}
163 \membersection{wxGauge::SetShadowWidth
}\label{wxgaugesetshadowwidth
}
165 \func{void
}{SetShadowWidth
}{\param{int
}{width
}}
167 Sets the
3D shadow width.
171 Windows only, not for
{\bf wxGA
\_PROGRESSBAR}.
173 \membersection{wxGauge::SetValue
}\label{wxgaugesetvalue
}
175 \func{void
}{SetValue
}{\param{int
}{pos
}}
177 Sets the position of the gauge.
179 \wxheading{Parameters
}
181 \docparam{pos
}{Position for the gauge level.
}
185 \helpref{wxGauge::GetValue
}{wxgaugegetvalue
}