contents up previous next

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

members

wxcolourdialog::wxcolourdialog
wxcolourdialog::~wxcolourdialog
wxcolourdialog::create
wxcolourdialog::getcolourdata
wxcolourdialog::showmodal


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()

destructor.


wxcolourdialog::create

bool create(wxwindow* parent, wxcolourdata* data = null)

same as constructor.


wxcolourdialog::getcolourdata

wxcolourdata& getcolourdata()

returns the colour data associated with the colour dialog.


wxcolourdialog::showmodal

int showmodal()

shows the dialog, returning wxid_ok if the user pressed ok, and wxid_cancel otherwise.