Print Page | Close Window

How can i make taskpanel group like this?

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=16655
Printed Date: 18 September 2024 at 9:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can i make taskpanel group like this?
Posted By: xtpuser
Subject: How can i make taskpanel group like this?
Date Posted: 03 May 2010 at 12:03am
I want to make my xtptaskpanel groups looks like this:



I writed the follow code to achieve my goals:

class CTaskPanelBkgGroup : public CXTPTaskPanelGroup
{
public:
     CTaskPanelBkgGroup(int id)
     {
          m_nBackgroundImage=id;
     }
};

CTaskPanelBkgGroup * pGroup=(CTaskPanelBkgGroup *)m_wndTaskPanel.GetGroups()->Add(new CTaskPanelBkgGroup(0),0);
pGroup->SetCaption("test);
pItem=pGroup->AddTextItem("test");
pItem->SetType(xtpTaskItemTypeLink);
pItem->SetID(0);

But it doesn't work,I get a access violation error when i tried to set the background image of the group.So there are two questions:

1.how can i set the background image of a xtptaskpanel group?

2.how can i set the background image of a xtptaskpanel?

thanks,








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