![]() |
Customize TaskPanel with a different colors |
Post Reply
|
| Author | |
debugx
Groupie
Joined: 23 June 2008 Location: Andorra Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Topic: Customize TaskPanel with a different colorsPosted: 10 July 2008 at 2:32am |
|
Hello All,
I want to draw TaskPanel in my project with a different colors. I mean I want for example change color for group headers background, folder background, text color, etc. Please advice me how can I implement this feature? Thanks. |
|
|
"Один законник с портфелем в рукаm
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 July 2008 at 5:24am |
|
Hi,
Check source code of Source\TaskPanel\XTPTaskPanelPaintManager.cpp
you need create class dervide from one of CXTPTaskPanelPaintManager class override RefreshMetrics and set your colors.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
debugx
Groupie
Joined: 23 June 2008 Location: Andorra Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2008 at 5:24am |
|
ok, I created class derived from CXTPTaskPanelPaintManage, override FillTaskPanel method (for example). How can I set now my custom paint manager to my Task panel control?
|
|
|
"Один законник с портфелем в рукаm
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2008 at 5:31am |
|
Hi,
m_wndTaskpanel.SetCustomTheme(new CMyPaintManager());
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
debugx
Groupie
Joined: 23 June 2008 Location: Andorra Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 July 2008 at 11:04am |
|
Thanks you. This answer was helpful for me. But I have on trouble: once
I created CXTPTaskPanelPaintManage object I cant delete it in my
destructor.
I mean I create this object on ctor: m_taskPanelPaintManager = new CTaskPanelPaintManager(); But if I try to free memory in destructor: if(m_taskPanelPaintManager != NULL) delete m_taskPanelPaintManager; the "Access vialation" exception is appeared. So, my understanding is that I dont need to free this object manually because it will be released automatically with task panel object. Is it correct? this is a little example illustrated may trouble with releasing memory after using CXTPTaskPanelPaintManage object uploads/20080714_110315_PaintManagerTes.zip |
|
|
"Один законник с портфелем в рукаm
|
|
![]() |
|
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 |