Print Page | Close Window

TaskPanel doubt?

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


Topic: TaskPanel doubt?
Posted By: Ashok
Subject: TaskPanel doubt?
Date Posted: 03 October 2007 at 4:12am
Hi,
   How to display the Caption for the taskpanel and how to display some image(bitmap) on the taskpanel. Please help.



Replies:
Posted By: Oleg
Date Posted: 03 October 2007 at 1:44pm
Hi,
 
Check Samples\TaskPanel\ToolBox  sample.
 
You need pGroup->SetCaption and pGroup->SetIconIndex methods.


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


Posted By: Ashok
Date Posted: 04 October 2007 at 11:48am
HI,
   SetCaption OK. But I want to display the bitmap in the right corner of the panel.  ex.  Caption    Bitmap
I don't have index only I have is bitmap id. I have tried with SetClientBitmap() but it is not displaying the bitmap properly because my bitmap size is 32,32. Please help.


Posted By: Oleg
Date Posted: 05 October 2007 at 3:02am
Hello,
 
You need add this bitmap to imagemanager and set IconIndex then:
 
m_wndTaskPanel.GetImageManager()->SetIcons(...);
pGroup->SetIconIndex(...);


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


Posted By: Ashok
Date Posted: 05 October 2007 at 6:40am
Hi,
  I am doing like this, but I am not getting the image on the taskpanel.

m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, rc, this, 0);

m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXPPlain);

CXTPTaskPanelGroup* pGroup = m_wndTaskPanel.AddGroup(0);

pGroup->SetCaption(_T("Caption"));

m_wndTaskPanel.GetImageManager()->SetIcons(IDB_TASKICONS_NORMAL,xtpImageNormal);

pGroup->SetIconIndex(1);

pGroup->SetExpandable(FALSE);
 


Posted By: Oleg
Date Posted: 05 October 2007 at 6:58am
Hi,
Replace SetIcons line to
 
wndTaskPanel.GetImageManager()->SetIcons(IDB_TASKICONS_NORMAL, NULL, 0, CSize(32, 32), xtpImageNormal);


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


Posted By: Ashok
Date Posted: 05 October 2007 at 8:11am
Hi,
  Please see the uploaded file. I want to place the bitmap at the place of expandable button position on the taskpanel group. https://forum.codejock.com/uploads/20071005_081044_test.rar - uploads/20071005_081044_test.rar


Posted By: Oleg
Date Posted: 05 October 2007 at 10:44am
Hello,
sorry,  you can only add this bitmap before caption
 


-------------
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