Print Page | Close Window

Selecting a Group programmatically

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=5062
Printed Date: 28 April 2024 at 6:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Selecting a Group programmatically
Posted By: afekhar
Subject: Selecting a Group programmatically
Date Posted: 15 September 2006 at 12:58pm
Hi,

I want to select a TaskPanel group programmatically (I want to put the highlighted rect around the caption of the group). I don't find nowhere in the doc how to do it.



Thanks.



Replies:
Posted By: SuperMario
Date Posted: 15 September 2006 at 1:18pm
Set wndTaskPanel.FocusedItem = wndTaskPanel.Groups.Find(ID_OF_GROUP)


Posted By: afekhar
Date Posted: 18 September 2006 at 3:02am
Doesn't work, I'm using WTL, there is no conversion from 'XtremeTaskPanel::ITaskPanelGroupPtr' to 'XtremeTaskPanel::ITaskPanelItem *' even when forcing with casting. Any other suggestion ?


Posted By: afekhar
Date Posted: 18 September 2006 at 4:21am
I tried with QueryInterface, seems ok


Posted By: Oleg
Date Posted: 18 September 2006 at 5:06am
Hi,

 XtremeTaskPanel::ITaskPanelGroupPtr spGroup = m_spTaskPanel->Groups->Find(1);
 XtremeTaskPanel::ITaskPanelItemPtr spItem = spGroup;
 m_spTaskPanel->FocusedItem = spItem;


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