Print Page | Close Window

Trouble with Task panel group icons

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=11447
Printed Date: 15 September 2025 at 1:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Trouble with Task panel group icons
Posted By: debugx
Subject: Trouble with Task panel group icons
Date Posted: 15 July 2008 at 4:58am
Hello All,

I created simple SDI application added TaskPanel. Then I want to add groups and group items with icons. I do this way:
    HICON icon1, icon2;
    icon1 = app->LoadIconA(IDI_ICON1);
    icon2 = app->LoadIconA(IDI_ICON2);
    CImageList pImList;
    pImList.Create(16, 16, ILC_COLOR32|ILC_MASK, 0, 1);
    pImList.Add(icon1);
    pImList.Add(icon2);
    m_myTaskPanel.GetImageManager()->SetIcons(pImList, 0, 0, CSize(16, 16));

When I set the icon index to the group elements:
    pGroupWelcome->AddLinkItem(ID_TASKITEM_CONNECTIONS, 1);
It works perfectly.
But when I am trying to set the icon index to the group itself:
    CXTPTaskPanelGroup* pGroupWelcome = m_wndWelcomeTaskPanel.AddGroup(ID_TASKGROUP_WELCOME, 1);
the icon look like large and not streched:
How can I do so that the icon appearance in the group headers looks like such accurately as in the group elements.
Thanks.


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



Replies:
Posted By: Oleg
Date Posted: 15 July 2008 at 8:16am
Hi,
 
Try to change size with SetGroupIconSize method.


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


Posted By: debugx
Date Posted: 15 July 2008 at 10:16am
thank you. It was helpful

-------------
"Один законник с портфелем в рука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