colordlg.tex

来自「wxWidgets 是一个跨平台的 GUI 框架。它给开发人员提供了统一的接口」· TEX 代码 · 共 66 行

TEX
66
字号
\section{\class{wxColourDialog}}\label{wxcolourdialog}This class represents the colour chooser dialog.\wxheading{Derived from}\helpref{wxDialog}{wxdialog}\\\helpref{wxWindow}{wxwindow}\\\helpref{wxEvtHandler}{wxevthandler}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/colordlg.h>\wxheading{See also}\helpref{wxColourDialog Overview}{wxcolourdialogoverview},\\\helpref{wxColour}{wxcolour},\\\helpref{wxColourData}{wxcolourdata},\\\helpref{wxGetColourFromUser}{wxgetcolourfromuser}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxColourDialog::wxColourDialog}\label{wxcolourdialogctor}\func{}{wxColourDialog}{\param{wxWindow* }{parent}, \param{wxColourData* }{data = NULL}}Constructor. Pass a parent window, and optionally a pointer to a block of colourdata, which will be copied to the colour dialog's colour data. Customcolours from colour data object will be be used in dialog's colour palette.Invalid entries in custom colours list will be ignored on some platforms (GTK)or replaced with white colour on platforms where custom colours palette hasfixed size (MSW).\wxheading{See also}\helpref{wxColourData}{wxcolourdata}\membersection{wxColourDialog::\destruct{wxColourDialog}}\label{wxcolourdialogdtor}\func{}{\destruct{wxColourDialog}}{\void}Destructor.\membersection{wxColourDialog::Create}\label{wxcolourdialogcreate}\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxColourData* }{data = NULL}}Same as \helpref{constructor}{wxcolourdialogctor}.\membersection{wxColourDialog::GetColourData}\label{wxcolourdialoggetcolourdata}\func{wxColourData\&}{GetColourData}{\void}Returns the \helpref{colour data}{wxcolourdata} associated with the colour dialog.\membersection{wxColourDialog::ShowModal}\label{wxcolourdialogshowmodal}\func{int}{ShowModal}{\void}Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCELotherwise.

⌨️ 快捷键说明

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