wxColourDialog

This class represents the colour chooser dialog.

Derived from

wxDialog
wxWindow
wxEvtHandler
wxObject

Include files

<wx/colordlg.h>

See also

wxColourDialog Overview,
wxColour,
wxColourData,
wxGetColourFromUser



wxColourDialog::wxColourDialog



wxColourDialog(wxWindow* parent, wxColourData* data = NULL)

Constructor. Pass a parent window, and optionally a pointer to a block of colour data, which will be copied to the colour dialog's colour data. Custom colours 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 has fixed size (MSW).

See also

wxColourData



wxColourDialog::~wxColourDialog



~wxColourDialog(void)

Destructor.



wxColourDialog::Create



bool Create(wxWindow* parent, wxColourData* data = NULL)

Same as constructor.



wxColourDialog::GetColourData



wxColourData& GetColourData(void)

Returns the colour data associated with the colour dialog.



wxColourDialog::ShowModal



int ShowModal(void)

Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL otherwise.

ymasuda 平成17年11月19日