⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radiobut.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
\section{\class{wxRadioButton}}\label{wxradiobutton}A radio button item is a button which usually denotes one of several mutuallyexclusive options. It has a text label next to a (usually) round button.You can create a group of mutually-exclusive radio buttons by specifying {\tt wxRB\_GROUP} forthe first in the group. The group ends when another radio button group is created, or there are no more radio buttons.\wxheading{Derived from}\helpref{wxControl}{wxcontrol}\\\helpref{wxWindow}{wxwindow}\\\helpref{wxEvtHandler}{wxevthandler}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/radiobut.h>\wxheading{Window styles}\twocolwidtha{5cm}\begin{twocollist}\itemsep=0pt\twocolitem{\windowstyle{wxRB\_GROUP}}{Marks the beginning of a new group of radio buttons.}\twocolitem{\windowstyle{wxRB\_SINGLE}}{In some circumstances, radio buttons that are notconsecutive siblings trigger a hang bug in Windows (only). If this happens, add this styleto mark the button as not belonging to a group, and implement the mutually-exclusive group behaviour yourself.}\twocolitem{\windowstyle{wxRB\_USE\_CHECKBOX}}{Use a checkbox button instead of radiobutton (currently supported only on PalmOS).}\end{twocollist}See also \helpref{window styles overview}{windowstyles}.\wxheading{Event handling}\twocolwidtha{7cm}\begin{twocollist}\itemsep=0pt\twocolitem{{\bf EVT\_RADIOBUTTON(id, func)}}{Process a wxEVT\_COMMAND\_RADIOBUTTON\_SELECTED event,when the radiobutton is clicked.}\end{twocollist}\wxheading{See also}\helpref{Event handling overview}{eventhandlingoverview}, \helpref{wxRadioBox}{wxradiobox},\rtfsp\helpref{wxCheckBox}{wxcheckbox}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxRadioButton::wxRadioButton}\label{wxradiobuttonctor}\func{}{wxRadioButton}{\void}Default constructor.\func{}{wxRadioButton}{\param{wxWindow*}{ parent}, \param{wxWindowID}{ id}, \param{const wxString\& }{label},\rtfsp\param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp\param{long}{ style = 0},\rtfsp\param{const wxValidator\& }{validator = wxDefaultValidator},\rtfsp\param{const wxString\& }{name = ``radioButton"}}Constructor, creating and showing a radio button.\wxheading{Parameters}\docparam{parent}{Parent window. Must not be NULL.}\docparam{id}{Window identifier. A value of -1 indicates a default value.}\docparam{label}{Label for the radio button.}\docparam{pos}{Window position. If the position (-1, -1) is specified then a default position is chosen.}\docparam{size}{Window size. If the default size (-1, -1) is specified then a default size is chosen.}\docparam{style}{Window style. See \helpref{wxRadioButton}{wxradiobutton}.}\docparam{validator}{Window validator.}\docparam{name}{Window name.}\wxheading{See also}\helpref{wxRadioButton::Create}{wxradiobuttoncreate}, \helpref{wxValidator}{wxvalidator}\membersection{wxRadioButton::\destruct{wxRadioButton}}\label{wxradiobuttondtor}\func{void}{\destruct{wxRadioButton}}{\void}Destructor, destroying the radio button item.\membersection{wxRadioButton::Create}\label{wxradiobuttoncreate}\func{bool}{Create}{\param{wxWindow*}{ parent}, \param{wxWindowID}{ id}, \param{const wxString\& }{label},\rtfsp\param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp\param{long}{ style = 0},\rtfsp\param{const wxValidator\& }{validator = wxDefaultValidator},\rtfsp\param{const wxString\& }{name = ``radioButton"}}Creates the choice for two-step construction. See \helpref{wxRadioButton::wxRadioButton}{wxradiobuttonctor} forfurther details.\membersection{wxRadioButton::GetValue}\label{wxradiobuttongetvalue}\constfunc{bool}{GetValue}{\void}Returns true if the radio button is depressed, false otherwise.\membersection{wxRadioButton::SetValue}\label{wxradiobuttonsetvalue}\func{void}{SetValue}{\param{const bool}{ value}}Sets the radio button to selected or deselected status. This does not cause awxEVT\_COMMAND\_RADIOBUTTON\_SELECTED event to get emitted.\wxheading{Parameters}\docparam{value}{true to select, false to deselect.}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -