Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - TaskPanel doubt?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TaskPanel doubt?

 Post Reply Post Reply
Author
Message
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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);
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2007 at 10:44am
Hello,
sorry,  you can only add this bitmap before caption
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.