![]()  | 
 
Selecting a Group programmatically | 
 
    Post Reply  
   | 
  
| Author | |
   
   afekhar  
   
   Groupie  
   Joined: 30 August 2006 Location: France Status: Offline Points: 43  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Selecting a Group programmaticallyPosted: 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.  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 15 September 2006 at 1:18pm | 
 
| 
   
    
   Set wndTaskPanel.FocusedItem = wndTaskPanel.Groups.Find(ID_OF_GROUP) 
   
   | 
 |
![]()  | 
 |
   
   afekhar  
   
   Groupie  
   Joined: 30 August 2006 Location: France Status: Offline Points: 43  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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 ?
    
   
   | 
 |
![]()  | 
 |
   
   afekhar  
   
   Groupie  
   Joined: 30 August 2006 Location: France Status: Offline Points: 43  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 18 September 2006 at 4:21am | 
 
| 
   
    
   I tried with QueryInterface, seems ok
    
   
   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |