Print Page | Close Window

Customize TaskPanel with a different colors

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=11371
Printed Date: 15 November 2025 at 8:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customize TaskPanel with a different colors
Posted By: debugx
Subject: Customize TaskPanel with a different colors
Date Posted: 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



Replies:
Posted By: Oleg
Date 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


Posted By: debugx
Date 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


Posted By: Oleg
Date Posted: 11 July 2008 at 5:31am
Hi,
 
m_wndTaskpanel.SetCustomTheme(new CMyPaintManager());


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: debugx
Date 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 - uploads/20080714_110315_PaintManagerTes.zip


-------------
"Один законник с портфелем в рукаm



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