This 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).
Creation Parameters
- atom parent
- integer id [=-1]
- atom color [=wxBLACK]
- integer x [=-1]
- integer y [=-1]
- integer cx [=-1]
- integer cy [=-1]
- integer style [=wxCLRP_DEFAULT_STYLE]
- wxCLRP_DEFAULT_STYLE The default style: 0.
- wxCLRP_USE_TEXTCTRL Creates a text control to the left of the picker button which is completely managed by the wxColourPickerCtrl and which can be used by the user to specify a colour (see SetColour). The text control is automatically synchronized with button's value. Use functions defined in wxPickerBase to modify the text control.
You can use the wxEVT_COMMAND_COLOURPICKER_CHANGED event, along with get_colorpickerevent_color.
Returns the currently selected color.
Sets the currently selected color.