Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Group selected
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Group selected

 Post Reply Post Reply
Author
Message
spbrady View Drop Down
Newbie
Newbie


Joined: 26 November 2007
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote spbrady Quote  Post ReplyReply Direct Link To This Post Topic: Group selected
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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 December 2007 at 12:40pm
Hi,
Do you need move focus to group caption?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
spbrady View Drop Down
Newbie
Newbie


Joined: 26 November 2007
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote spbrady Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2007 at 12:44pm
I believe that is what I need.

I need the group object (header) to have the focus.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 06 December 2007 at 1:04am
Hi,
 
use FocusedItem property:
 
Set TaskPanel.FocusedItem = Group
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
spbrady View Drop Down
Newbie
Newbie


Joined: 26 November 2007
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote spbrady Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
spbrady View Drop Down
Newbie
Newbie


Joined: 26 November 2007
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote spbrady Quote  Post ReplyReply Direct Link To This Post 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.
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.164 seconds.