Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How can I create a custom taskpanel theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I create a custom taskpanel theme

 Post Reply Post Reply
Author
Message
Roger View Drop Down
Newbie
Newbie


Joined: 06 February 2006
Location: United Kingdom
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Quote  Post ReplyReply Direct Link To This Post Topic: How can I create a custom taskpanel theme
    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

Back to Top
Roger View Drop Down
Newbie
Newbie


Joined: 06 February 2006
Location: United Kingdom
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Gary8 View Drop Down
Newbie
Newbie


Joined: 07 February 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary8 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Roger View Drop Down
Newbie
Newbie


Joined: 06 February 2006
Location: United Kingdom
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.