back to gui
wxColourPickerCtrl
generated from ../src/mod_gui/control/clrpick.cpp
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.
Constants
Styles
| Name |
Description |
| DEFAULT_STYLE |
|
| USE_TEXTCTRL |
|
| SHOW_LABEL |
|
Constructor
wxColourPickerCtrl
wxColourPickerCtrl()
wxColourPickerCtrl(Parent,
Id,
Colour = wxBLACK,
Pos = wxDefaultPosition,
Size = wxDefaultSize,
Style = wxColourPickerCtrl.DEFAULT_STYLE,
Validator = null)
| Name |
Type |
Default |
Description |
| Parent |
wxWindow |
|
The parent of the colour picker. |
| Id |
Integer |
|
A window identifier. Use wxId.ANY or -1 when you don't need it.
|
| Colour |
wxColour |
wxBLACK |
|
| Pos |
wxPoint |
wxDefaultPosition |
The position of the colour picker on the given parent.
|
| Size |
wxSize |
wxDefaultSize |
The size of the colour picker.
|
| Style |
Integer |
wxColourPickerCtrl.DEFAULT_STYLE |
The style
|
| Validator |
wxValidator |
null |
|
Constructs a new colour picker.
Properties
Methods
create
create(Parent,
Id,
Colour = wxBLACK,
Pos = wxDefaultPosition,
Size = wxDefaultSize,
Style = wxColourPickerCtrl.DEFAULT_STYLE,
Validator = null) : Boolean
| Name |
Type |
Default |
Description |
| Parent |
wxWindow |
|
The parent of the colour picker. |
| Id |
Integer |
|
An window identifier. Use -1 when you don't need it.
|
| Colour |
wxColour |
wxBLACK |
|
| Pos |
wxPoint |
wxDefaultPosition |
The position of the colour picker on the given parent.
|
| Size |
wxSize |
wxDefaultSize |
The size of the colour picker.
|
| Style |
Integer |
wxColourPickerCtrl.DEFAULT_STYLE |
The style
|
| Validator |
wxValidator |
null |
|
Creates a colour picker control.
Events