wxColourPickerCtrlThis control allows the user to select a colour. The generic implementation is a button which brings up a wxColourDialog when clicked. Native implementation may differ but this is usually a (small) widget which give access to the colour-chooser dialog. It is only available if wxUSE_COLOURPICKERCTRL is set to 1 (the default). Derived from
wxPickerBase Include files <wx/clrpicker.h> Window styles
Event handling To process a colour picker event, use these event handler macros to direct input to member functions that take a wxColourPickerEvent argument.
See also
wxColourDialog, Members
wxColourPickerCtrl::wxColourPickerCtrl
wxColourPickerCtrl::wxColourPickerCtrlwxColourPickerCtrl(wxWindow *parent, wxWindowID id, const wxColour& colour = *wxBLACK, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "colourpickerctrl") Initializes the object and calls Create with all the parameters.
wxColourPickerCtrl::Createbool Create(wxWindow *parent, wxWindowID id, const wxColour& colour = *wxBLACK, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "colourpickerctrl") Parameters parent
id
colour
pos
size
style
validator
name
Return value true if the control was successfully created or false if creation failed.
wxColourPickerCtrl::GetColourwxColour GetColour() const Returns the currently selected colour.
wxColourPickerCtrl::SetColourvoid SetColour(const wxColour &col) void SetColour(const wxString &colname) Sets the currently selected colour. See wxColour::Set.
|