wx.lib.agw.flatmenu.FMRendererMSOffice2007¶
Windows Office 2007 style.
Class Hierarchy¶
Known Subclasses¶
wx.lib.agw.flatmenu.FMRendererVista
Known Superclasses¶
wx.lib.agw.flatmenu.FMRenderer
Methods Summary¶
Default class constructor. |
|
Draws a button using the Office 2007 theme. |
|
Draws a button using the Office 2007 theme. |
|
Draws the menu left margin. |
|
Draws the menu bar background according to the active theme. |
|
Draws the highlight on a |
|
Draws the highlight on a |
|
Draws the toolbar background according to the active theme. |
|
Returns the colour used for text colour when enabled. |
Class API¶
- class FMRendererMSOffice2007(FMRenderer)¶
Windows Office 2007 style.
Methods¶
- __init__(self)¶
Default class constructor.
- DrawButton(self, dc, rect, state, colour=None)¶
Draws a button using the Office 2007 theme.
- Parameters:
dc – an instance of
wx.DC
;rect – an instance of
wx.Rect
, representing the button client rectangle;state (integer) – the button state;
colour – if not
None
, an instance ofwx.Colour
to be used to draw theFlatMenuItem
background.
- DrawButtonColour(self, dc, rect, state, colour)¶
Draws a button using the Office 2007 theme.
- DrawLeftMargin(self, item, dc, menuRect)¶
Draws the menu left margin.
- Parameters:
item – the
FlatMenuItem
to paint;dc – an instance of
wx.DC
;menuRect – an instance of
wx.Rect
, representing the menu client rectangle.
- DrawMenuBarBackground(self, dc, rect)¶
Draws the menu bar background according to the active theme.
- DrawMenuBarButton(self, dc, rect, state)¶
Draws the highlight on a
FlatMenuBar
.
- DrawToolBarBg(self, dc, rect)¶
Draws the toolbar background according to the active theme.
- GetTextColourEnable(self)¶
Returns the colour used for text colour when enabled.