Base class for FlatImageBook image container.
__init__ | Default class constructor. |
AddPage | Adds a page to the container. |
AssignImageList | Assigns an image list to the ImageContainerBase. |
CanDoBottomStyle | Allows the parent to examine the children type. |
ClearAll | Deletes all the pages in the container. |
ClearFlag | Removes flag from the style. |
DoDeletePage | Does the actual page deletion. |
DrawPin | Draw a pin button, that allows collapsing of the image panel. |
EnableTab | Enables or disables a tab. |
FixTextSize | Fixes the text, to fit maxWidth value. If the text length exceeds |
GetEnabled | Returns whether a tab is enabled or not. |
GetImageList | Return the image list for ImageContainerBase. |
GetImageSize | Returns the image size inside the ImageContainerBase image list. |
GetPageImage | Returns the image index for the given page. |
GetPageText | Returns the tab caption for the given page. |
HasAGWFlag | Tests for existance of flag in the style. |
HitTest | Returns the index of the tab at the specified position or wx.NOT_FOUND |
InsertPage | Inserts a page into the container at the specified position. |
OnEraseBackground | Handles the wx.EVT_ERASE_BACKGROUND event for ImageContainerBase. |
OnMouseLeaveWindow | Handles the wx.EVT_LEAVE_WINDOW event for ImageContainerBase. |
OnMouseLeftDown | Handles the wx.EVT_LEFT_DOWN event for ImageContainerBase. |
OnMouseLeftUp | Handles the wx.EVT_LEFT_UP event for ImageContainerBase. |
OnMouseMove | Handles the wx.EVT_MOTION event for ImageContainerBase. |
OnSize | Handles the wx.EVT_SIZE event for ImageContainerBase. |
PointOnSash | Tests whether pt is located on the sash. |
SetPageImage | Sets the image for the given page. |
SetPageText | Sets the tab caption for the given page. |
Base class for FlatImageBook image container.
Default class constructor.
Parameters: |
|
---|
Adds a page to the container.
Parameters: |
|
---|
Assigns an image list to the ImageContainerBase.
Parameters: | imglist – an instance of wx.ImageList. |
---|
Allows the parent to examine the children type. Some implementation (such as LabelBook), does not support top/bottom images, only left/right.
Removes flag from the style.
Parameters: | flag – a window style flag. |
---|
See also
HasAGWFlag for a list of possible window style flags.
Draw a pin button, that allows collapsing of the image panel.
Parameters: |
|
---|
Enables or disables a tab.
Parameters: |
|
---|
Fixes the text, to fit maxWidth value. If the text length exceeds maxWidth value this function truncates it and appends two dots at the end. (“Long Long Long Text” might become “Long Long...”).
Parameters: |
|
---|
Returns whether a tab is enabled or not.
Parameters: | page – an integer specifying the page index. |
---|
Return the image list for ImageContainerBase.
Returns the image size inside the ImageContainerBase image list.
Returns the image index for the given page.
Parameters: | page – the index of the tab. |
---|
Returns the tab caption for the given page.
Parameters: | page – the index of the tab. |
---|
Tests for existance of flag in the style.
Parameters: | flag – a window style. This can be a combination of the following bits:
|
---|
Returns the index of the tab at the specified position or wx.NOT_FOUND if None, plus the flag style of HitTest.
Parameters: | pt – an instance of wx.Point, to test for hits. | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | The index of the tab at the specified position plus the hit test
flag, which can be one of the following bits:
|
Inserts a page into the container at the specified position.
Parameters: |
|
---|
Handles the wx.EVT_ERASE_BACKGROUND event for ImageContainerBase.
Parameters: | event – a wx.EraseEvent event to be processed. |
---|
Note
This method is intentionally empty to reduce flicker.
Handles the wx.EVT_LEAVE_WINDOW event for ImageContainerBase.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_LEFT_DOWN event for ImageContainerBase.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_LEFT_UP event for ImageContainerBase.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_MOTION event for ImageContainerBase.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_SIZE event for ImageContainerBase.
Parameters: | event – a wx.SizeEvent event to be processed. |
---|
Tests whether pt is located on the sash.
Parameters: | pt – an instance of wx.Point, to test for hits. |
---|
Sets the image for the given page.
Parameters: |
|
---|