![]()  | 
 
Slider control on Designer Toolbar? | 
 
    Post Reply  
   | 
  
| Author | |
   
   rjvaal  
   
   Newbie  
   Joined: 20 September 2004 Status: Offline Points: 3  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Slider control on Designer Toolbar?Posted: 20 September 2004 at 9:54am  | 
 
| 
   
    Does anybody know how I can add a custom slider control to a Designer toolbar? The CommonControls example creates the control in the ON_XTP_CREATECONTROL handler. But the handler doesn't get reached when controls are read in from the designer. Thanks in advance....  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 21 September 2004 at 7:25am | 
 
| 
   
    You must manually add it in code: pToolbar->GetControls()->add(new CXTPControlCustom()...) and recreate original controls to support "Reset" command. pToolbar->GetControls()->CreateOriginalControls(); 
  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   rjvaal  
   
   Newbie  
   Joined: 20 September 2004 Status: Offline Points: 3  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 21 September 2004 at 1:19pm | 
 
| 
   
    
   Thanks Oleg -- when I did this I can create a slider, but it looks very bad when I use the Office2003 theme -- is there any trick to making the slider use the theme?
    
   
   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 22 September 2004 at 12:03am | 
 
| 
   
    Add manifest file to use XP themes. (see manifest.xml in our samples)  | 
 |
| 
   
     
     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  |