X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b69c815746d9ca7cbfcbe96423e2021ed3fbdb2..c52b96359b639cda516615f9433d3b20b35443b5:/docs/latex/wx/control.tex diff --git a/docs/latex/wx/control.tex b/docs/latex/wx/control.tex index 75c4e5f975..584363605b 100644 --- a/docs/latex/wx/control.tex +++ b/docs/latex/wx/control.tex @@ -15,6 +15,10 @@ displays one or more item of data. +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{See also} \helpref{wxValidator}{wxvalidator} @@ -31,10 +35,24 @@ Simulates the effect of the user issuing a command to the item. See \helpref{wxC \membersection{wxControl::GetLabel}\label{wxcontrolgetlabel} -\func{wxString\&}{GetLabel}{\void} +\constfunc{wxString}{GetLabel}{\void} 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::GetLabelText}\label{wxcontrolgetlabeltext} + +\constfunc{const wxString\&}{GetLabelText}{\void} + +\func{static wxString}{GetLabelText}{\param{const wxString\& }{label}} + +Returns the control's label, or the given \arg{label} string for the static +version, without the mnemonics characters. + \membersection{wxControl::SetLabel}\label{wxcontrolsetlabel} @@ -42,3 +60,10 @@ Returns the control's text. 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{"\&\&"}. + +