1 Attachment(s)
Office 2007 Menu/Toolstrip ColorTable
Hey,
Here is my latest Toolstrip Renderer (well actually, just a ColorTable) that mimicks the Office 2007 menustrip and toolstrip look as closely as possible. Since Office 2007 usually uses a Ribbon, I based my example on Visio 2007, which does not use a Ribbon. It seems that most third party software takes the Visio look as standard too, so I figured I should follow them :)
Screenshots:
http://i36.tinypic.com/2rnaczr.jpg
http://i33.tinypic.com/519f2d.jpg
The attached class is a ProfessionalColorTable which you assign to a ToolstripProfessionalRenderer. The renderer then uses the colors defined in the color table class. If you then assign an instance of that renderer to the Renderer property of the MenuStrip and ToolStrip, you get the colors as defined in the color table.
In short, this is how you use it:
1. Add the attached class to your project
2. Add a normal MenuStrip and ToolStrip to your form
3. Assign their Renderer property like so:
vb.net Code:
Dim r As New ToolStripProfessionalRenderer(New Office2007ColorTable)
MenuStrip1.Renderer = r
ToolStrip1.Renderer = r
(This assumes your MenuStrip is called MenuStrip1, your ToolStrip is called ToolStrip1, and the color table class you downloaded from this post is still called Office2007ColorTable. If not, replace these names with your own names obviously.
I would usually run that code in the Form_Load event, or possibly in the constructor (Public Sub New) of the relevant form.
Enjoy!
Re: Office 2007 Menu/Toolstrip ColorTable
I dont see the difference between that and the Office 2003 colour scheme - am I missing something?
Re: Office 2007 Menu/Toolstrip ColorTable
Your glasses maybe? :p
Here's a comparison screenshot (left is mine, right is standard office 2003 style):
http://i33.tinypic.com/am5mya.jpg
Re: Office 2007 Menu/Toolstrip ColorTable
Ah I see, fair enough :) it is very similar though :P
Re: Office 2007 Menu/Toolstrip ColorTable
Yeah but it looks much nicer in my opinion. The 2003 style is too dark, especially the borders.