Print Page | Close Window

different icons for each taskpanel group

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=8162
Printed Date: 13 November 2025 at 9:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: different icons for each taskpanel group
Posted By: evoX
Subject: different icons for each taskpanel group
Date Posted: 25 September 2007 at 11:58am
How can I set different Icons for each TaskPanel group ?
 

this sets one icon for all groups:

pTaskPanel->GetImageManager()->SetIcon(IDR_MAINFRAME, IDR_MAINFRAME);



Replies:
Posted By: Oleg
Date Posted: 26 September 2007 at 12:59am
Hi,
Guess you just set IDR_MAINFRAME icon index for all groups.
Set different image index for each group and add more images to imagemanager.


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


Posted By: evoX
Date Posted: 26 September 2007 at 7:36am
How to set different image index for each group ?


Posted By: evoX
Date Posted: 26 September 2007 at 7:39am
I found SetGroupIcons, but I need to add PNG transparent images instead of icons, how can I add them ?


Posted By: Oleg
Date Posted: 27 September 2007 at 1:15am
Hi,
Use SetIcons method instead. See CXTPImageManager in SymboReference.chm.


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


Posted By: evoX
Date Posted: 27 September 2007 at 7:10am
I already use SetIcons to set PNG images to TaskPanel items, but how can I set the images with SetIcons to groups instead of items ?


Posted By: Oleg
Date Posted: 27 September 2007 at 2:54pm
Hello,
its same image manager. Just add PNG and set correct ImageIndex.


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


Posted By: evoX
Date Posted: 27 September 2007 at 3:21pm

I currently have this line to add the PNG icons

m_wndOutlookBar.GetImageManager()->SetIcons(IDB_PNG_FOLDER_IMAGES, 0, 32, CSize(64,50));

were can I set the index for group icons ?



Posted By: Oleg
Date Posted: 28 September 2007 at 3:24am
Hi,
 
Add
pGroup->SetIconIndex(1);


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



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