LabelContainer¶Base class for LabelBook.
Methods Summary¶| __init__ | Default class constructor. |
| CanDoBottomStyle | Allows the parent to examine the children type. |
| DrawBackgroundBitmap | Draws a bitmap as the background of the control. |
| DrawLabel | Draws a label using the specified dc. |
| DrawRegularHover | Draws a rounded rectangle around the current tab. |
| DrawWebHover | Draws a web style hover effect (cursor set to hand & text is underlined). |
| GetColour | Returns a colour for a parameter. |
| GetTabAreaWidth | Returns the width of the tab area. |
| InitializeColours | Initializes the colours map to be used for this control. |
| OnEraseBackground | Handles the wx.EVT_ERASE_BACKGROUND event for LabelContainer. |
| OnMouseLeaveWindow | Handles the wx.EVT_LEAVE_WINDOW event for LabelContainer. |
| OnMouseLeftDown | Handles the wx.EVT_LEFT_DOWN event for LabelContainer. |
| OnMouseLeftUp | Handles the wx.EVT_LEFT_UP event for LabelContainer. |
| OnMouseMove | Handles the wx.EVT_MOTION event for LabelContainer. |
| OnPaint | Handles the wx.EVT_PAINT event for LabelContainer. |
| OnSize | Handles the wx.EVT_SIZE event for LabelContainer. |
| Resize | Actually resizes the tab area. |
| SetBackgroundBitmap | Sets the background bitmap for the control. |
| SetColour | Sets a colour for a parameter. |
| SetTabAreaWidth | Sets the width of the tab area. |
Class API¶Base class for LabelBook.
Default class constructor.
| Parameters: |
|
|---|
Allows the parent to examine the children type. Some implementation (such as LabelBook), does not support top/bottom images, only left/right.
Draws a bitmap as the background of the control.
| Parameters: | dc – an instance of wx.DC. |
|---|
Draws a label using the specified dc.
| Parameters: |
|
|---|
Draws a rounded rectangle around the current tab.
| Parameters: |
|
|---|
Draws a web style hover effect (cursor set to hand & text is underlined).
| Parameters: |
|
|---|
Returns a colour for a parameter.
| Parameters: | which – the colour key. |
|---|
See also
SetColour for a list of valid colour keys.
Handles the wx.EVT_ERASE_BACKGROUND event for LabelContainer.
| Parameters: | event – a wx.EraseEvent event to be processed. |
|---|
Handles the wx.EVT_LEAVE_WINDOW event for LabelContainer.
| Parameters: | event – a wx.MouseEvent event to be processed. |
|---|
Handles the wx.EVT_LEFT_DOWN event for LabelContainer.
| Parameters: | event – a wx.MouseEvent event to be processed. |
|---|
Handles the wx.EVT_LEFT_UP event for LabelContainer.
| Parameters: | event – a wx.MouseEvent event to be processed. |
|---|
Handles the wx.EVT_MOTION event for LabelContainer.
| Parameters: | event – a wx.MouseEvent event to be processed. |
|---|
Handles the wx.EVT_PAINT event for LabelContainer.
| Parameters: | event – a wx.PaintEvent event to be processed. |
|---|
Handles the wx.EVT_SIZE event for LabelContainer.
| Parameters: | event – a wx.SizeEvent event to be processed. |
|---|
Actually resizes the tab area.
| Parameters: | event – an instance of wx.SizeEvent. |
|---|
Sets the background bitmap for the control.
| Parameters: | bmp – a valid wx.Bitmap object. |
|---|
Sets a colour for a parameter.
| Parameters: |
|
|---|