Print Page | Close Window

How can I create a custom taskpanel theme

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3611
Printed Date: 09 November 2025 at 11:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I create a custom taskpanel theme
Posted By: Roger
Subject: How can I create a custom taskpanel theme
Date Posted: 06 February 2006 at 3:35pm

Hi,

I'd like to create a CXTPTaskPanel theme, which is similar to Whidbey but has small changes like group highlights on mouse-over (like the Office2003 theme). Could someone just give me a quick nudge in the right direction? I am new to Xtreme Toolkit but am a very experienced C++/MFC developer, I just need a hint to get me looking at the right class(es) to inherit from etc.

Thanks in advance,

Roger




Replies:
Posted By: Roger
Date Posted: 07 February 2006 at 10:39am

Answering my own request but what the heck - I've looked through the source code of the library and it's actually a lot easier to get to grips with than I expected. Actually very well designed.

I have my custom theme up and running perfectly now.

Roger



Posted By: Gary8
Date Posted: 07 February 2006 at 4:18pm

I'm in the process of trying to do the same thing. Would you be able to share some details of what is involved? I'm not experienced in MFC at all.

Gary



Posted By: Roger
Date Posted: 08 February 2006 at 8:08am

Take a look at the source files XTPTaskPanelPaintManager.h and XTPTaskPanelPaintManager.cpp to see how the existing taskpanel themes - e.g. CXTPTaskPanelOffice2003Theme - are derived from CXTPTaskPanelPaintManager, there are only a handful of methods that need to be implemented. I combined behaviours from the Office 2003 and Whidbey themes in a new class of my own which I derived from CXTPTaskPanelPaintManager.

To use the new theme, use the SetCustomTheme() methods of the taskpanel instance rather than SetTheme().

Hope that helps.

Roger




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