Base class used to hold common code for the HSB colour wheel and the RGB colour cube.
__init__ | Default class constructor. |
AcceptsFocus | Can this window be given focus by mouse click? |
AcceptsFocusFromKeyboard | Can this window be given focus by keyboard navigation? If not, the |
DoGetBestSize | Overridden base class virtual. Determines the best size of the |
DrawLines | Draws the lines connecting the markers on top of the background bitmap. |
DrawMarkers | Draws the markers on top of the background bitmap. |
OnEraseBackground | Handles the EVT_ERASE_BACKGROUND for BasePyControl. |
OnLeftDown | Handles the EVT_LEFT_DOWN for BasePyControl. |
OnLeftUp | Handles the EVT_LEFT_UP for BasePyControl. |
OnMotion | Handles the EVT_MOTION for BasePyControl. |
OnPaint | Handles the EVT_PAINT for BasePyControl. |
OnSize | Handles the EVT_SIZE for BasePyControl. |
Base class used to hold common code for the HSB colour wheel and the RGB colour cube.
Default class constructor. Used internally. Do not call it in your code!
Parameters: |
|
---|
Can this window be given focus by mouse click?
Note
This method always returns False as we do not accept focus from mouse click.
Note
Overridden from PyControl.
Can this window be given focus by keyboard navigation? If not, the only way to give it focus (provided it accepts it at all) is to click it.
Note
This method always returns False as we do not accept focus from the keyboard.
Note
Overridden from PyControl.
Overridden base class virtual. Determines the best size of the control based on the bitmap size.
Note
Overridden from PyControl.
Draws the lines connecting the markers on top of the background bitmap.
Parameters: | dc – an instance of DC. |
---|
Note
This method must be overridden in derived classes.
Draws the markers on top of the background bitmap.
Parameters: | dc – an instance of DC. |
---|
Note
This method must be overridden in derived classes.
Handles the EVT_ERASE_BACKGROUND for BasePyControl.
Parameters: | event – a EraseEvent event to be processed. |
---|
Note
This is intentionally empty to reduce flicker.
Handles the EVT_LEFT_DOWN for BasePyControl.
Parameters: | event – a MouseEvent event to be processed. |
---|
Note
This method must be overridden in derived classes.
Handles the EVT_LEFT_UP for BasePyControl.
Parameters: | event – a MouseEvent event to be processed. |
---|
Note
This method must be overridden in derived classes.
Handles the EVT_MOTION for BasePyControl.
Parameters: | event – a MouseEvent event to be processed. |
---|
Note
This method must be overridden in derived classes.
Handles the EVT_PAINT for BasePyControl.
Parameters: | event – a PaintEvent event to be processed. |
---|
Handles the EVT_SIZE for BasePyControl.
Parameters: | event – a SizeEvent event to be processed. |
---|