The control's visual style.

Usage

Set_Property(OLECtrlEntID, "OLE.Theme", OptionValue)

Values

OptionValue can be set to one of the following valid options:

ValueDescription
Office2000Office 2000 visual style
Office2003Office 2003 visual style
WinXPWindows XP visual style
Office2000PlainOffice 2000 Plain visual style
OfficeXPPlainOffice XP Plain visual style
Office2003PlainOffice 2003 Plain visual style
WinXPPlainWindows XP Plain visual style
ToolboxToolbox visual style
ToolboxWhidbeyWhidbey Toolbox visual style
ListViewList View visual style
ListViewOfficeXPList View for Office XP visual style
ListViewOffice2003List View for Office 2003 visual style
Office2007BlueOffice 2007 blue visual style
Office2007BlackOffice 2007 black visual style
Office2007SilverOffice 2007 silver visual style
Office2010BlueOffice 2010 blue visual style
Office2010BlackOffice 2010 black visual style
Office2010SilverOffice 2010 silver visual style
Windows7Windows 7 visual style
Office2013Office 2013 visual style
VisualStudio2012LightVisual Studio 2012 light visual style
VisualStudio2012DarkVisual Studio 2012 darkvisual style

Default: WinXP

Remarks

The Theme property establishes the visual presentation of the shortcut bar, and there are 12 styles to choose from. Furthermore, themes have their own hot track styles and margin settings, which will be used if you have the HotTrackStyle or Margins property set to "Default". However, you can modify the hot track style or margins of any theme to suit your needs.

Some themes render special groups differently for emphasis. See the GroupSpecial property for more details.

Here are screenshots of the available themes. Note that these screenshots were taken in Windows 8.1, and some themes adjust to the systems colors and may therefore be different on your system.

Office2000

Office2003

WinXP

Office2000Plain 

OfficeXPPlain

Office2003Plain

WinXPPlainToolboxToolboxWhidbeyListViewListViewOfficeXPListViewOffice2003
Office2007BlueOffice2007BlackOffice2007SilverOffice2010BlueOffice2010BlackOffice2010Silver
Windows7Office2013VisualStudio2012Light

VisualStudio2012Dark

  
  

Example

// Set an Office theme 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.Theme", "Office2003") 

// Set a plain theme 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.Theme", "OfficeXPPlain") 

// Set a toolbox theme 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.Theme", "ToolboxWhidbey") 

// Set a list view theme 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.Theme", "ListViewOffice2003")

See Also

HotTrackStyleMarginsGroupSpecial

  • No labels