phoenix_title wx.lib.agw.flatmenu.FMRendererMSOffice2007

Windows Office 2007 style.


class_hierarchy Class Hierarchy

Inheritance diagram for class FMRendererMSOffice2007:

method_summary Methods Summary

__init__

Default class constructor.

DrawButton

Draws a button using the Office 2007 theme.

DrawButtonColour

Draws a button using the Office 2007 theme.

DrawLeftMargin

Draws the menu left margin.

DrawMenuBarBackground

Draws the menu bar background according to the active theme.

DrawMenuBarButton

Draws the highlight on a FlatMenuBar.

DrawMenuButton

Draws the highlight on a FlatMenu.

DrawToolBarBg

Draws the toolbar background according to the active theme.

GetTextColourEnable

Returns the colour used for text colour when enabled.


api 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 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.

Parameters
  • dc – an instance of wx.DC;

  • rect – an instance of wx.Rect, representing the button client rectangle;

  • state (integer) – the button state;

  • colour – a valid wx.Colour instance.



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.

Parameters
  • dc – an instance of wx.DC;

  • rect – an instance of wx.Rect, representing the menubar client rectangle.



DrawMenuBarButton(self, dc, rect, state)

Draws the highlight on a FlatMenuBar.

Parameters
  • dc – an instance of wx.DC;

  • rect – an instance of wx.Rect, representing the button client rectangle;

  • state (integer) – the button state.



DrawMenuButton(self, dc, rect, state)

Draws the highlight on a FlatMenu.

Parameters
  • dc – an instance of wx.DC;

  • rect – an instance of wx.Rect, representing the button client rectangle;

  • state (integer) – the button state.



DrawToolBarBg(self, dc, rect)

Draws the toolbar background according to the active theme.

Parameters
  • dc – an instance of wx.DC;

  • rect – an instance of wx.Rect, representing the toolbar client rectangle.



GetTextColourEnable(self)

Returns the colour used for text colour when enabled.