This panel displays a series of custom colours (chosen by the user) just like
the standard wx.ColourDialog
.
Default class constructor. |
|
Adds a user-chosen colour to the list of custom colours. |
|
Overridden base class virtual. Determines the best size of the control. |
|
Initializes the 16 custom colours in |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Paints a newly added custom colour subpanel. |
|
Draws all the 16 subpanels with their custom colours. |
|
Highlight the current custom colour selection (if any). |
This panel displays a series of custom colours (chosen by the user) just like
the standard wx.ColourDialog
.
Default class constructor. Used internally. Do not call it in your code!
parent – the control parent window;
colourData – an instance of wx.ColourData
.
Adds a user-chosen colour to the list of custom colours.
colour – an instance of wx.Colour
.
Overridden base class virtual. Determines the best size of the control.
Note
Overridden from wx.Control
.
Initializes the 16 custom colours in CustomPanel
.
Handles the wx.EVT_ERASE_BACKGROUND
for CustomPanel
.
event – a EraseEvent
event to be processed.
Note
This is intentionally empty to reduce flicker.
Handles the wx.EVT_LEFT_DOWN
for CustomPanel
.
event – a MouseEvent
event to be processed.
Handles the wx.EVT_PAINT
for CustomPanel
.
event – a PaintEvent
event to be processed.
Handles the wx.EVT_SIZE
for CustomPanel
.
event – a wx.SizeEvent
event to be processed.
Paints a newly added custom colour subpanel.
dc – an instance of wx.DC
;
selX – the x coordinate of the custom colour subpanel;
selY – the y coordinate of the custom colour subpanel.
Draws all the 16 subpanels with their custom colours.
dc – an instance of wx.DC
.