Table Of Contents

Previous topic

RendererBase

Next topic

RendererXP

This Page

phoenix_title RendererMSOffice2007

Windows MS Office 2007 style.


class_hierarchy Inheritance Diagram

Inheritance diagram for class RendererMSOffice2007

Inheritance diagram of RendererMSOffice2007


method_summary Methods Summary

__init__ Default class constructor.
DrawButton Draws a button using the MS Office 2007 theme.
DrawButtonColour Draws a button using the MS Office 2007 theme.
DrawMenuBarBg Draws the menu bar background according to the active theme.
DrawToolBarBg Draws the toolbar background according to the active theme.
GetColoursAccordingToState Returns a Colour according to the menu item state.
GetTextColourEnable Returns the colour used for text colour when enabled.

api Class API



class RendererMSOffice2007(RendererBase)

Windows MS Office 2007 style.


Methods



__init__(self)

Default class constructor.



DrawButton(self, dc, rect, state, useLightColours)

Draws a button using the MS Office 2007 theme.

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


DrawButtonColour(self, dc, rect, state, colour)

Draws a button using the MS Office 2007 theme.

Parameters:
  • dc – an instance of DC;
  • rect (Rect) – the button’s client rectangle;
  • state (integer) – the button state;
  • colour – a valid Colour instance.


DrawMenuBarBg(self, dc, rect)

Draws the menu bar background according to the active theme.

Parameters:
  • dc – an instance of DC;
  • rect (Rect) – the menu bar’s client rectangle.


DrawToolBarBg(self, dc, rect)

Draws the toolbar background according to the active theme.

Parameters:
  • dc – an instance of DC;
  • rect (Rect) – the toolbar’s client rectangle.


GetColoursAccordingToState(self, state)

Returns a Colour according to the menu item state.

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

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


GetTextColourEnable(self)

Returns the colour used for text colour when enabled.

Returns:An instance of Colour.