![]() |
Trouble with Task panel group icons |
Post Reply ![]() |
Author | |
debugx ![]() Groupie ![]() ![]() Joined: 23 June 2008 Location: Andorra Status: Offline Points: 28 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Try to change size with SetGroupIconSize method.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
debugx ![]() Groupie ![]() ![]() Joined: 23 June 2008 Location: Andorra Status: Offline Points: 28 |
![]() ![]() ![]() ![]() ![]() |
thank you. It was helpful
|
|
"Один законник с портфелем в рука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 |