This class is a child sibling of the FoldPanelBar class. It will contain a CaptionBar class for receiving of events, and a the rest of the area can be populated by a wx.Panel derived class.
__init__ | Default class constructor. |
AddSeparator | Adds a separator item to the list of items on this panel. |
AddWindow | Adds a window item to the list of items on this panel. |
ApplyCaptionStyle | Applies the style defined in cbstyle to the CaptionBar. |
Collapse | Internal method. |
Expand | Internal method. |
GetCaptionLength | Returns height of caption only. |
GetCaptionStyle | Returns the current style of the captionbar in a CaptionBarStyle class. |
GetItemPos | Returns item’s position. |
GetPanelLength | Returns size of panel. |
IsExpanded | Returns expanded or collapsed status. |
IsVertical | Returns whether the CaptionBar has default orientation or not. |
OnPaint | Handles the wx.EVT_PAINT event for FoldPanelItem. |
OnPressCaption | Handles the wx.EVT_CAPTIONBAR event for FoldPanelItem. |
Reposition | Repositions this FoldPanelItem and reports the length occupied |
ResizePanel | Resizes the panel. |
This class is a child sibling of the FoldPanelBar class. It will contain a CaptionBar class for receiving of events, and a the rest of the area can be populated by a wx.Panel derived class.
Default class constructor.
Parameters: |
|
---|
Adds a separator item to the list of items on this panel.
Parameters: |
|
---|
Adds a window item to the list of items on this panel.
Parameters: |
|
---|
Applies the style defined in cbstyle to the CaptionBar.
Internal method.
This should not be called by the user, because it doesn’t trigger the parent to tell it that we are collapsed or expanded, it only changes visual state.
Internal method.
This should not be called by the user, because it doesn’t trigger the parent to tell it that we are collapsed or expanded, it only changes visual state.
Returns height of caption only. This is for folding calculation purposes.
Returns the current style of the captionbar in a CaptionBarStyle class.
This can be used to change and set back the changes.
Returns expanded or collapsed status. If the panel is expanded, True is returned.
Returns whether the CaptionBar has default orientation or not. Default is vertical.
Handles the wx.EVT_PAINT event for FoldPanelItem.
Parameters: | event – a wx.PaintEvent event to be processed. |
---|
Handles the wx.EVT_CAPTIONBAR event for FoldPanelItem.
Parameters: | event – a CaptionBarEvent event to be processed. |
---|
Repositions this FoldPanelItem and reports the length occupied for the next FoldPanelItem in the list.
Parameters: | pos – the new item position. |
---|