We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Docking Tabs: Office 2003 appearance when using "Windows Classic Style"

Thread ID:

Created:

Updated:

Platform:

Replies:

41972 Mar 16,2006 04:00 AM Mar 17,2006 07:05 AM Windows Forms 3
loading
Tags: Tools
Paul Wardle
Asked On March 16, 2006 04:00 AM

I have an application that uses docking with Office 2003 look and feel. When I run the app in "Windows XP Style" it looks great. When run in Windows 2000 or on Windows XP in "Windows Classic Style" the docking tabs are painted in an odd blue colour (see attached jpg) How can I make the tabs appear the same as other windows?

docking_2003.zip

Joy K George [Syncfusion]
Replied On March 16, 2006 07:26 AM

Hi Paul, I was able to reproduce the situation here.The reason is,We are using the System colors for drawing the tabs.So according to the classic style,the color is that odd blue. However if you want to change the color of the docktabs please put the following code snippet in the DockStateChanged eventhandler. private void dockingManager1_DockStateChanged(object sender, Syncfusion.Windows.Forms.Tools.DockStateChangeEventArgs arg) { DockHost dh= arg.Controls[0].Parent as DockHost ; DockHostController dhc=dh.InternalController as DockHostController ; if(dhc.ParentController is DockTabController ) { DockTabController dtc= dhc.ParentController as DockTabController ; dtc.TabControl.TabPanelBackColor=Color.Silver ; //You may change this color according to your choice } } I have created a sample which implements this code.Please go through that and let me know , if you have any queries regarding this. Thanks for choosing Syncfusion products. Regards, Joy

sample22.zip

Paul Wardle
Replied On March 17, 2006 05:43 AM

Hi Joy Thanks for the sample. This works for Windows Classic style. But now Windows XP style also uses "Silver". How do I only change the tab color when "Windows Classic Style" is selected?

Joy K George [Syncfusion]
Replied On March 17, 2006 07:05 AM

Hi Paul, You could get the name of the current theme from the registry.For more information please refer this link.Then, in the DockStateChanged event handler you could check for classic theme,and change color according to your choice. I have modified the sample to implement this functionality.Please take a look into that and let me know if you need further assistance. Regards, Joy

sample23.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;