AGW Logo

agw_title RendererMSOffice2007

Windows MS Office 2007 style.

hierarchy Inheritance Diagram

Inheritance diagram for: RendererMSOffice2007

Inheritance diagram of RendererMSOffice2007


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
DrawButtonDraws a button using the MS Office 2007 theme.
DrawButtonColourDraws a button using the MS Office 2007 theme.
DrawMenuBarBgDraws the menu bar background according to the active theme.
DrawToolBarBgDraws the toolbar background according to the active theme.
GetColoursAccordingToStateReturns a wx.Colour according to the menu item state.
GetTextColourEnableReturns the colour used for text colour when enabled.

API Class API

class RendererMSOffice2007(RendererBase)[source]

Windows MS Office 2007 style.



__init__()[source]

Default class constructor.



DrawButton(dc, rect, state, useLightColours)[source]

Draws a button using the MS Office 2007 theme.

Parameters:
  • dc – an instance of wx.DC;
  • rect (wx.Rect) – the button’s client rectangle;
  • state (integer) – the button state;
  • useLightColours (bool) – True to use light colours, False otherwise.


DrawButtonColour(dc, rect, state, colour)[source]

Draws a button using the MS Office 2007 theme.

Parameters:
  • dc – an instance of wx.DC;

  • rect (wx.Rect) – the button’s client rectangle;
  • state (integer) – the button state;
  • colour – a valid wx.Colour instance.



DrawMenuBarBg(dc, rect)[source]

Draws the menu bar background according to the active theme.

Parameters:
  • dc – an instance of wx.DC;

  • rect (wx.Rect) – the menu bar’s client rectangle.


DrawToolBarBg(dc, rect)[source]

Draws the toolbar background according to the active theme.

Parameters:
  • dc – an instance of wx.DC;

  • rect (wx.Rect) – the toolbar’s client rectangle.


GetColoursAccordingToState(state)[source]

Returns a wx.Colour according to the menu item state.

Parameters:state (integer) – one of the following bits:


integer parameter settings
Item State Value Description
ControlPressed 0 The item is pressed
ControlFocus 1 The item is focused
ControlDisabled 2 The item is disabled
ControlNormal 3 Normal state
Returns:An instance of wx.Colour.


GetTextColourEnable()[source]

Returns the colour used for text colour when enabled.

Returns:An instance of wx.Colour.
Tree

Table Of Contents

Previous topic

RendererBase

Next topic

RendererXP