![]() |
TaskPanel doubt? |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: TaskPanel doubt?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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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);
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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.uploads/20071005_081044_test.rar
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 October 2007 at 10:44am |
|
Hello,
sorry, you can only add this bitmap before caption
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |