<wx/control.h>
+\wxheading{Library}
+
+\helpref{wxCore}{librarieslist}
+
\wxheading{See also}
\helpref{wxValidator}{wxvalidator}
Simulates the effect of the user issuing a command to the item. See \helpref{wxCommandEvent}{wxcommandevent}.
-\membersection{wxControl::GetAdjustMinSizeFlag}\label{wxcontrolgetadjustminsizeflag}
+\membersection{wxControl::GetLabel}\label{wxcontrolgetlabel}
-\func{bool}{GetAdjustMinSizeFlag}{}
+\constfunc{wxString}{GetLabel}{\void}
-Returns whether the minsize should be adjusted for this control when
-SetLabel or SetFont are called.
+Returns the control's text.
+Note that the returned string contains the mnemonics (\texttt{\&} characters) if
+any, use \helpref{wxControl::GetLabelText}{wxcontrolgetlabeltext} if they are
+undesired.
-\membersection{wxControl::GetLabel}\label{wxcontrolgetlabel}
-\func{wxString\&}{GetLabel}{\void}
-
-Returns the control's text.
+\membersection{wxControl::GetLabelText}\label{wxcontrolgetlabeltext}
+\constfunc{const wxString\&}{GetLabelText}{\void}
-\membersection{wxControl::SetAdjustMinSizeFlag}\label{wxcontrolsetadjustminsizeflag}
+\func{static wxString}{GetLabelText}{\param{const wxString\& }{label}}
-\func{void}{SetAdjustMinSizeFlag}{\param{bool }{adjust}}
+Returns the control's label, or the given \arg{label} string for the static
+version, without the mnemonics characters.
-By default controls will readjust their size and minsize when
-SetLabel or SetFont are called. This flag will allow you to
-control this behavior.
\membersection{wxControl::SetLabel}\label{wxcontrolsetlabel}
Sets the item's text.
+The \texttt{\&} characters in the \arg{label} are special and indicate that the
+following character is a mnemonic for this control and can be used to activate
+it from the keyboard (typically by using \textit{Alt} key in combination with
+it). To insert a literal ampersand character, you need to double it, i.e. use
+\texttt{"\&\&"}.
+
+