![]() |
How can I create a custom taskpanel theme |
Post Reply
|
| Author | |
Roger
Newbie
Joined: 06 February 2006 Location: United Kingdom Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: How can I create a custom taskpanel themePosted: 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 |
|
![]() |
|
Roger
Newbie
Joined: 06 February 2006 Location: United Kingdom Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Gary8
Newbie
Joined: 07 February 2006 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Roger
Newbie
Joined: 06 February 2006 Location: United Kingdom Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |