Windows Office 2007 style.
wx.lib.agw.flatmenu.FMRendererVista
wx.lib.agw.flatmenu.FMRenderer
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. |
FMRendererMSOffice2007
(FMRenderer)¶Windows Office 2007 style.
__init__
(self)¶Default class constructor.
DrawButton
(self, dc, rect, state, colour=None)¶Draws a button using the Office 2007 theme.
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 of wx.Colour
to be used to draw
the FlatMenuItem
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.
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.