]>
Commit | Line | Data |
---|---|---|
a660d684 KB |
1 | \section{\class{wxColourDialog}}\label{wxcolourdialog} |
2 | ||
3 | This class represents the colour chooser dialog. | |
4 | ||
5 | \wxheading{Derived from} | |
6 | ||
7 | \helpref{wxDialog}{wxdialog}\\ | |
8 | \helpref{wxWindow}{wxwindow}\\ | |
9 | \helpref{wxEvtHandler}{wxevthandler}\\ | |
10 | \helpref{wxObject}{wxobject} | |
11 | ||
954b8ae6 JS |
12 | \wxheading{Include files} |
13 | ||
14 | <wx/colordlg.h> | |
15 | ||
a7af285d VZ |
16 | \wxheading{Library} |
17 | ||
18 | \helpref{wxCore}{librarieslist} | |
19 | ||
a660d684 KB |
20 | \wxheading{See also} |
21 | ||
d741c583 VZ |
22 | \helpref{wxColourDialog Overview}{wxcolourdialogoverview},\\ |
23 | \helpref{wxColour}{wxcolour},\\ | |
24 | \helpref{wxColourData}{wxcolourdata},\\ | |
25 | \helpref{wxGetColourFromUser}{wxgetcolourfromuser} | |
a660d684 KB |
26 | |
27 | \latexignore{\rtfignore{\wxheading{Members}}} | |
28 | ||
f510b7b2 | 29 | \membersection{wxColourDialog::wxColourDialog}\label{wxcolourdialogctor} |
a660d684 KB |
30 | |
31 | \func{}{wxColourDialog}{\param{wxWindow* }{parent}, \param{wxColourData* }{data = NULL}} | |
32 | ||
33 | Constructor. Pass a parent window, and optionally a pointer to a block of colour | |
393c836c VS |
34 | data, which will be copied to the colour dialog's colour data. Custom |
35 | colours from colour data object will be be used in dialog's colour palette. | |
36 | Invalid entries in custom colours list will be ignored on some platforms (GTK) | |
37 | or replaced with white colour on platforms where custom colours palette has | |
38 | fixed size (MSW). | |
a660d684 KB |
39 | |
40 | \wxheading{See also} | |
41 | ||
42 | \helpref{wxColourData}{wxcolourdata} | |
43 | ||
f510b7b2 | 44 | \membersection{wxColourDialog::\destruct{wxColourDialog}}\label{wxcolourdialogdtor} |
a660d684 KB |
45 | |
46 | \func{}{\destruct{wxColourDialog}}{\void} | |
47 | ||
48 | Destructor. | |
49 | ||
f510b7b2 | 50 | \membersection{wxColourDialog::Create}\label{wxcolourdialogcreate} |
f6bcfd97 BP |
51 | |
52 | \func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxColourData* }{data = NULL}} | |
53 | ||
f510b7b2 | 54 | Same as \helpref{constructor}{wxcolourdialogctor}. |
f6bcfd97 | 55 | |
f510b7b2 | 56 | \membersection{wxColourDialog::GetColourData}\label{wxcolourdialoggetcolourdata} |
a660d684 KB |
57 | |
58 | \func{wxColourData\&}{GetColourData}{\void} | |
59 | ||
60 | Returns the \helpref{colour data}{wxcolourdata} associated with the colour dialog. | |
61 | ||
f510b7b2 | 62 | \membersection{wxColourDialog::ShowModal}\label{wxcolourdialogshowmodal} |
a660d684 KB |
63 | |
64 | \func{int}{ShowModal}{\void} | |
65 | ||
3134f933 | 66 | Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL |
a660d684 KB |
67 | otherwise. |
68 | ||
69 |