X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecdba0d10f3fa0fd666c51ae033499ed16f9234f..a9c98d7dd3a089e47a14369dcaf30a5e983079d5:/docs/latex/wx/tglbtn.tex diff --git a/docs/latex/wx/tglbtn.tex b/docs/latex/wx/tglbtn.tex index 78e059361b..88519f5fd9 100644 --- a/docs/latex/wx/tglbtn.tex +++ b/docs/latex/wx/tglbtn.tex @@ -11,14 +11,14 @@ \section{\class{wxToggleButton}}\label{wxtogglebutton} -wxToggleButton is a button which stays pressed when clicked by the user. In -other words, it is more similar to \helpref{wxCheckBox}{wxcheckbox} in +wxToggleButton is a button that stays pressed when clicked by the user. In +other words, it is similar to \helpref{wxCheckBox}{wxcheckbox} in functionality but looks like a \helpref{wxButton}{wxbutton}. -You can see wxToggleButton in action in the sixth page of the -\helpref{controls}{samplecontrols} sample. +Since wxWidgets version 2.9.0 this control emits an update UI event. -{\bf NB: } This class is only available under wxMSW and wxGTK currently. +You can see wxToggleButton in action in the sixth page of the +\helpref{controls}{samplecontrols} sample. \wxheading{Derived from} @@ -31,6 +31,10 @@ You can see wxToggleButton in action in the sixth page of the +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Window styles} There are no special styles for wxToggleButton. @@ -41,12 +45,13 @@ See also \helpref{window styles overview}{windowstyles}. \twocolwidtha{7cm} \begin{twocollist}\itemsep=0pt -\twocolitem{{\bf EVT\_TOGGLEBUTTON(id, func)}}{Handles button click event.} +\twocolitem{{\bf EVT\_TOGGLEBUTTON(id, func)}}{Handles a toggle button click event.} \end{twocollist} \wxheading{See also} -\helpref{wxCheckBox}{wxcheckbox}, \helpref{wxButton}{wxbutton} +\helpref{wxCheckBox}{wxcheckbox}, \helpref{wxButton}{wxbutton}, +\helpref{wxBitmapToggleButton}{wxbitmaptogglebutton} \latexignore{\rtfignore{\wxheading{Members}}} @@ -85,7 +90,7 @@ Constructor, creating and showing a toggle button. \helpref{wxToggleButton::Create}{wxtogglebuttoncreate}, \helpref{wxValidator}{wxvalidator} -\membersection{wxToggleButton::\destruct{wxToggleButton}} +\membersection{wxToggleButton::\destruct{wxToggleButton}}\label{wxtogglebuttondtor} \func{}{\destruct{wxToggleButton}}{\void} @@ -109,16 +114,16 @@ Gets the state of the toggle button. \wxheading{Return value} -Returns {\tt TRUE} if it is pressed, {\tt FALSE} otherwise. +Returns {\tt true} if it is pressed, {\tt false} otherwise. \membersection{wxToggleButton::SetValue}\label{wxtogglebuttonsetvalue} -\func{void}{SetValue}{\param{const bool}{ state}} +\func{void}{SetValue}{\param{bool}{ state}} Sets the toggle button to the given state. This does not cause a -{\tt EVT\_TOGGLEBUTTON} event to get emitted. +{\tt EVT\_TOGGLEBUTTON} event to be emitted. \wxheading{Parameters} -\docparam{state}{If {\tt TRUE}, the button is pressed.} +\docparam{state}{If {\tt true}, the button is pressed.}