A class which encapsulates an MFC CStatusBar
. Derived from a PyCControlBar object.
-
Returns indicator ID, style, and width for a given pane index.
-
Returns the status bar control object associated with the status bar.
-
Sets each indicator's ID.
-
Sets indicator ID, style, and width for a given pane index.
PyCStatusBar.GetPaneInfo
(id, style, width) = GetPaneInfo(index) Returns the id, style, and width of the indicator pane at the location specified by index.
-
index : int
Index of the pane whose information is to be retrieved.
- CStatusBar::GetPaneInfo
PyCStatusBar.GetStatusBarCtrl
PyCStatusBarCtrl = GetStatusBarCtrl() Gets the statusbar control object for the statusbar.
- CStatusBar::GetStatusBarCtrl
Note that below we take the address of rTBC because it's a reference and not a pointer
and ui_assoc_object::make expects a pointer.
We need to create a new class and not do a map lookup because in MFC CToolBarCtrl is
simply a casted CToolBarCtrl (afxext.inl) so the lookup will return the PyCToolBar object
which will fail the type tests.
PyCStatusBar.SetIndicators
SetIndicators(indicators) Sets each indicator's ID.
-
indicators : tuple
A tuple containing the ID's of the indicators.
PyCStatusBar.SetPaneInfo
SetPaneInfo(index, id, style, width) Sets the specified indicator pane to a new ID, style, and width.
-
index : int
Index of the indicator pane whose style is to be set.
-
id : int
New ID for the indicator pane.
-
style : int
New style for the indicator pane. The following indicator styles are supported: afxres.SBPS_NOBORDERS - No 3-D border around the pane. afxres.SBPS_POPOUT - Reverse border so that text "pops out." afxres.SBPS_DISABLED - Do not draw text. afxres.SBPS_STRETCH - Stretch pane to fill unused space. Only one pane per status bar can have this style. afxres.SBPS_NORMAL - No stretch, borders, or pop-out.
-
width : int
New width for the indicator pane.
- CStatusBar::SetPaneInfo