Print Page | Close Window

MDI Tab buttons colorising (Office 2003)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=667
Printed Date: 23 November 2024 at 4:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Tab buttons colorising (Office 2003)
Posted By: eliasp
Subject: MDI Tab buttons colorising (Office 2003)
Date Posted: 28 April 2004 at 3:50am

Is there any way to prevent the docking manager when using the Office 2003 theme, of colorising with different color each time the MDI tab buttons ?

Even better, is there any way of having Office 2003 docking style with XP style of MDI buttons ? Pppllleeeeaaasssseee...

Or, how can we control the colors programmatically in the ActiveX version... ?? Using API perhaps ? (Need pointing to a direction)




Replies:
Posted By: SuperMario
Date Posted: 28 April 2004 at 6:56am
Yes, this is possible.  Take a look at the TabManager sample.

You can just disable OneNote colors to make it stop using a different color for each tab.
You must set AutoTheme to False if you are not changing these settings at runtime.
    CommandBars.TabWorkspace.AutoTheme = False
    CommandBars.TabWorkspace.PaintManager.OneNoteColors = False

Add this if you want to change the appearnce of the tabs, you can change the properties to whatever style you like.
    CommandBars.TabWorkspace.PaintManager.Appearance = xtpTabAppearancePropertyPage
    CommandBars.TabWorkspace.PaintManager.Color = xtpTabColorOffice2003

You can mix and match appearances and themes, so you can have Office 2003 dockning pane tabs and XP style MDI buttons.

Add this to change the docking pane buttons to the style you wish.
     DockingPaneManager.PanelPaintManager.xtpTabAppearancePropert yPage

Hope this helps



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net