Print Page | Close Window

Group selected

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=9011
Printed Date: 24 November 2024 at 5:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Group selected
Posted By: spbrady
Subject: Group selected
Date Posted: 05 December 2007 at 11:50am
My first group is expanded, but the group header is not selected.  How do i make it so it appears selected?

How do i force an group item or an item to be selected?

A code example would be great!

Thanks



Replies:
Posted By: Oleg
Date Posted: 05 December 2007 at 12:40pm
Hi,
Do you need move focus to group caption?


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


Posted By: spbrady
Date Posted: 05 December 2007 at 12:44pm
I believe that is what I need.

I need the group object (header) to have the focus.


Posted By: Oleg
Date Posted: 06 December 2007 at 1:04am
Hi,
 
use FocusedItem property:
 
Set TaskPanel.FocusedItem = Group


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


Posted By: spbrady
Date Posted: 06 December 2007 at 9:56am
I tried doing that and I got an error:

TaskPanelGroup Group = axTaskPanel1.Groups.Find(ID_TASK_MODELS);
axTaskPanel1.FocusedItem = Group;

The group is found, not null and an error occurs on the second line.

The Error is:
"Cannot implicitly convert type 'XtreemTaskPanel.TaskPanelGroup' to 'XtremeTaskPanel.TaskPanelItem'. An explict conversion exists (are you missing a cast?)

What am I doing incorrectly?

Thanks


Posted By: spbrady
Date Posted: 06 December 2007 at 9:59am
Ok i casted it and it worked...did nto think it was that easy.

Thanks for you help.



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