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

📄 dialog.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 2 页
字号:
\wxheading{See also}\helpref{wxDialog::ShowModal}{wxdialogshowmodal},\rtfsp\helpref{wxDialog::GetReturnCode}{wxdialoggetreturncode},\rtfsp\helpref{wxDialog::SetReturnCode}{wxdialogsetreturncode}\membersection{wxDialog::GetAffirmativeId}\label{wxdialoggetaffirmativeid}\constfunc{int}{GetAffirmativeId}{\void}Gets the identifier of the button which works like standard OK button in thisdialog.\wxheading{See also}\helpref{wxDialog::SetAffirmativeId}{wxdialogsetaffirmativeid}\membersection{wxDialog::GetEscapeId}\label{wxdialoggetescapeid}\constfunc{int}{GetEscapeId}{\void}Gets the identifier of the button to map presses of \texttt{\textsc{ESC}}button to.\wxheading{See also}\helpref{wxDialog::SetEscapeId}{wxdialogsetescapeid}\membersection{wxDialog::GetReturnCode}\label{wxdialoggetreturncode}\func{int}{GetReturnCode}{\void}Gets the return code for this window.\wxheading{Remarks}A return code is normally associated with a modal dialog, where \helpref{wxDialog::ShowModal}{wxdialogshowmodal} returnsa code to the application.\wxheading{See also}\helpref{wxDialog::SetReturnCode}{wxdialogsetreturncode}, \helpref{wxDialog::ShowModal}{wxdialogshowmodal},\rtfsp\helpref{wxDialog::EndModal}{wxdialogendmodal}\membersection{wxDialog::GetToolBar}\label{wxdialoggettoolbar}\constfunc{wxToolBar*}{GetToolBar}{\void}On PocketPC, a dialog is automatically provided with an empty toolbar. GetToolBarallows you to access the toolbar and add tools to it. Removing tools and addingarbitrary controls are not currently supported.This function is not available on any other platform.\membersection{wxDialog::Iconize}\label{wxdialogiconized}\func{void}{Iconize}{\param{const bool}{ iconize}}Iconizes or restores the dialog. Windows only.\wxheading{Parameters}\docparam{iconize}{If true, iconizes the dialog box; if false, shows and restores it.}\wxheading{Remarks}Note that in Windows, iconization has no effect since dialog boxes cannot beiconized. However, applications may need to explicitly restore dialogboxes under Motif which have user-iconizable frames, and under Windowscalling {\tt Iconize(false)} will bring the window to the front, as does\rtfsp{\tt Show(true)}.\membersection{wxDialog::IsIconized}\label{wxdialogisiconized}\constfunc{bool}{IsIconized}{\void}Returns true if the dialog box is iconized. Windows only.\wxheading{Remarks}Always returns false under Windows since dialogs cannot be iconized.\membersection{wxDialog::IsModal}\label{wxdialogismodal}\constfunc{bool}{IsModal}{\void}Returns true if the dialog box is modal, false otherwise.\membersection{wxDialog::OnSysColourChanged}\label{wxdialogonsyscolourchanged}\func{void}{OnSysColourChanged}{\param{wxSysColourChangedEvent\& }{event}}The default handler for wxEVT\_SYS\_COLOUR\_CHANGED.\wxheading{Parameters}\docparam{event}{The colour change event.}\wxheading{Remarks}Changes the dialog's colour to conform to the current settings (Windows only).Add an event table entry for your dialog class if you wish the behaviourto be different (such as keeping a user-definedbackground colour). If you do override this function, call wxEvent::Skip topropagate the notification to child windows and controls.\wxheading{See also}\helpref{wxSysColourChangedEvent}{wxsyscolourchangedevent}\membersection{wxDialog::SetAffirmativeId}\label{wxdialogsetaffirmativeid}\func{void}{SetAffirmativeId}{\param{int }{id}}Sets the identifier to be used as OK button. When the button with thisidentifier is pressed, the dialog calls \helpref{Validate}{wxwindowvalidate} and \helpref{wxWindow::TransferDataFromWindow}{wxwindowtransferdatafromwindow} and, if they both return \true, closes the dialog with \texttt{wxID\_OK} returncode.Also, when the user presses a hardware OK button on the devices having one orthe special OK button in the PocketPC title bar, an event with this id isgenerated.By default, the affirmative id is wxID\_OK.\wxheading{See also}\helpref{wxDialog::GetAffirmativeId}{wxdialoggetaffirmativeid}, \helpref{wxDialog::SetEscapeId}{wxdialogsetescapeid}\membersection{wxDialog::SetEscapeId}\label{wxdialogsetescapeid}\func{void}{SetEscapeId}{\param{int }{id}}Sets the identifier of the button which should work like the standard \texttt{\textsc{Cancel}} button in this dialog. When the button with this id isclicked, the dialog is closed. Also, when the user presses \texttt{\textsc{ESC}} key in the dialog or closes the dialog using the close button in the title bar,this is mapped to the click of the button with the specified id.By default, the escape id is the special value \texttt{wxID\_ANY} meaning that \texttt{wxID\_CANCEL} button is used if it's present in the dialog andotherwise the button with \helpref{GetAffirmativeId()}{wxdialoggetaffirmativeid} is used. Another special value for \arg{id} is \texttt{wxID\_NONE} meaning that\texttt{\textsc{ESC}} presses should be ignored. If any other value is given, itis interpreted as the id of the button to map the escape key to.\membersection{wxDialog::SetIcon}\label{wxdialogseticon}\func{void}{SetIcon}{\param{const wxIcon\& }{icon}}Sets the icon for this dialog.\wxheading{Parameters}\docparam{icon}{The icon to associate with this dialog.}See also \helpref{wxIcon}{wxicon}.\membersection{wxDialog::SetIcons}\label{wxdialogseticons}\func{void}{SetIcons}{\param{const wxIconBundle\& }{icons}}Sets the icons for this dialog.\wxheading{Parameters}\docparam{icons}{The icons to associate with this dialog.}See also \helpref{wxIconBundle}{wxiconbundle}.\membersection{wxDialog::SetModal}\label{wxdialogsetmodal}\func{void}{SetModal}{\param{const bool}{ flag}}{\bf NB:} This function is deprecated and doesn't work for all ports, just use\helpref{ShowModal}{wxdialogshowmodal} to show a modal dialog instead.Allows the programmer to specify whether the dialog box is modal (wxDialog::Show blocks controluntil the dialog is hidden) or modeless (control returns immediately).\wxheading{Parameters}\docparam{flag}{If true, the dialog will be modal, otherwise it will be modeless.}\membersection{wxDialog::SetReturnCode}\label{wxdialogsetreturncode}\func{void}{SetReturnCode}{\param{int }{retCode}}Sets the return code for this window.\wxheading{Parameters}\docparam{retCode}{The integer return code, usually a control identifier.}\wxheading{Remarks}A return code is normally associated with a modal dialog, where \helpref{wxDialog::ShowModal}{wxdialogshowmodal} returnsa code to the application. The function \helpref{wxDialog::EndModal}{wxdialogendmodal} calls {\bf SetReturnCode}.\wxheading{See also}\helpref{wxDialog::GetReturnCode}{wxdialoggetreturncode}, \helpref{wxDialog::ShowModal}{wxdialogshowmodal},\rtfsp\helpref{wxDialog::EndModal}{wxdialogendmodal}\membersection{wxDialog::Show}\label{wxdialogshow}\func{bool}{Show}{\param{const bool}{ show}}Hides or shows the dialog.\wxheading{Parameters}\docparam{show}{If true, the dialog box is shown and brought to the front;otherwise the box is hidden. If false and the dialog ismodal, control is returned to the calling program.}\wxheading{Remarks}The preferred way of dismissing a modal dialog is to use \helpref{wxDialog::EndModal}{wxdialogendmodal}.\membersection{wxDialog::ShowModal}\label{wxdialogshowmodal}\func{int}{ShowModal}{\void}Shows a modal dialog. Program flow does not return until the dialog has been dismissed with\rtfsp\helpref{wxDialog::EndModal}{wxdialogendmodal}.\wxheading{Return value}The return value is the value set with \helpref{wxDialog::SetReturnCode}{wxdialogsetreturncode}.\wxheading{See also}\helpref{wxDialog::EndModal}{wxdialogendmodal},\rtfsp\helpref{wxDialog:GetReturnCode}{wxdialoggetreturncode},\rtfsp\helpref{wxDialog::SetReturnCode}{wxdialogsetreturncode}

⌨️ 快捷键说明

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