Table Of Contents

Previous topic

AlphaCtrl

Next topic

BasePyControl

This Page

phoenix_title BaseLineCtrl

Base class used to hold common code for the Alpha channel control and the brightness palette control.


class_hierarchy Inheritance Diagram

Inheritance diagram for class BaseLineCtrl

Inheritance diagram of BaseLineCtrl


super_classes Known Superclasses

PyControl


method_summary Methods Summary

__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
BuildRect Internal method.
DoGetBestSize Overridden base class virtual. Determines the best size of the control.
OnEraseBackground Handles the EVT_ERASE_BACKGROUND for BaseLineCtrl.
OnLeftDown Handles the EVT_LEFT_DOWN for BaseLineCtrl.
OnLeftUp Handles the EVT_LEFT_UP for BaseLineCtrl.
OnMotion Handles the EVT_MOTION for BaseLineCtrl.
OnSize Handles the EVT_SIZE for BaseLineCtrl.

api Class API



class BaseLineCtrl(PyControl)

Base class used to hold common code for the Alpha channel control and the brightness palette control.


Methods



__init__(self, parent)

Default class constructor. Used internally. Do not call it in your code!

Parameters:parent – the control parent window.


AcceptsFocus(self)

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.



AcceptsFocusFromKeyboard(self)

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.



BuildRect(self)

Internal method.



DoGetBestSize(self)

Overridden base class virtual. Determines the best size of the control.

Note

Overridden from PyControl.



OnEraseBackground(self, event)

Handles the EVT_ERASE_BACKGROUND for BaseLineCtrl.

Parameters:event – a EraseEvent event to be processed.

Note

This is intentionally empty to reduce flicker.



OnLeftDown(self, event)

Handles the EVT_LEFT_DOWN for BaseLineCtrl.

Parameters:event – a MouseEvent event to be processed.


OnLeftUp(self, event)

Handles the EVT_LEFT_UP for BaseLineCtrl.

Parameters:event – a MouseEvent event to be processed.


OnMotion(self, event)

Handles the EVT_MOTION for BaseLineCtrl.

Parameters:event – a MouseEvent event to be processed.


OnSize(self, event)

Handles the EVT_SIZE for BaseLineCtrl.

Parameters:event – a SizeEvent event to be processed.