X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eaaa6a06a25774c18d10bb8182cc1934ed0ed9aa..f9dae7798b164a5f4abc85d16f49cabd4e0980c0:/docs/latex/wx/checkbox.tex diff --git a/docs/latex/wx/checkbox.tex b/docs/latex/wx/checkbox.tex index 44a963c3ea..b8d77fdc5e 100644 --- a/docs/latex/wx/checkbox.tex +++ b/docs/latex/wx/checkbox.tex @@ -10,15 +10,27 @@ or off (no checkmark). \helpref{wxEvtHandler}{wxevthandler}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{Window styles} There are no special styles for wxCheckBox. See also \helpref{window styles overview}{windowstyles}. +\wxheading{Event handling} + +\twocolwidtha{7cm} +\begin{twocollist}\itemsep=0pt +\twocolitem{{\bf EVT\_CHECKBOX(id, func)}}{Process a wxEVT\_COMMAND\_CHECKBOX\_CLICKED event, +when the checkbox is clicked.} +\end{twocollist} + \wxheading{See also} -\helpref{wxRadioButton}{wxradiobutton} +\helpref{wxRadioButton}{wxradiobutton}, \helpref{wxCommandEvent}{wxcommandevent} \latexignore{\rtfignore{\wxheading{Members}}} @@ -81,16 +93,24 @@ Gets the state of the checkbox. \wxheading{Return value} -Returns TRUE if it is checked, FALSE otherwise. +Returns {\tt true} if it is checked, {\tt false} otherwise. + +\membersection{wxCheckBox::IsChecked}\label{wxcheckboxischecked} + +\constfunc{bool}{IsChecked}{\void} + +This is just a maybe more readable synonym for +\helpref{GetValue}{wxcheckboxgetvalue}: just as the latter, it returns +{\tt true} if the checkbox is checked and {\tt false} otherwise. \membersection{wxCheckBox::SetValue}\label{wxcheckboxsetvalue} \func{void}{SetValue}{\param{const bool}{ state}} -Sets the checkbox to the given state. +Sets the checkbox to the given state. This does not cause a +wxEVT\_COMMAND\_CHECKBOX\_CLICKED event to get emitted. \wxheading{Parameters} -\docparam{state}{If TRUE, the check is on, otherwise it is off.} - +\docparam{state}{If {\tt true}, the check is on, otherwise it is off.}