![]()  | 
 
SOLVED: Custom control does not stay on bar | 
 
    Post Reply  
   | 
  
| Author | |
   
   chrisABC  
   
   Senior Member  
   Joined: 05 June 2008 Status: Offline Points: 258  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: SOLVED: Custom control does not stay on barPosted: 14 July 2008 at 9:26am  | 
 
| 
   
    
   
I have got my first CommandBar working  (using code rather than the Designer). 
   
  I add two custom controls to it, as shown in CodeJock sample code. I am adding CodeJock FlatEdit control and also CodeJock Slider Control. When toolbar first appears everything looks correct. But when I click on a customcontrol BOTH controls jump to different position (back to their original position). If dock the toolbar, custom controls jump back to correct place, and stay with toolbar when I drag the toolbar around. But when I click a control they junp back to original positions. What have I forgotten to do?? (yes. I am assuming it is my fault) SOLUTION: The problem is only with CodeJock controls. So I use the standard VB TextBox and Slider Controls and they work OK.  | 
 |
| 
   
     
     Chris (Manchester, UK) -- www.abc6.co.uk  ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
     
   
   | 
 |
![]()  | 
 |
   
   Baldur  
   
   Senior Member  
   Joined: 22 November 2006 Location: Germany Status: Offline Points: 244  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 14 July 2008 at 11:22am | 
 
| 
   
    
   Put the controls in a container like PictureBox, that works.
    
   
   | 
 |
![]()  | 
 |
   
   chrisABC  
   
   Senior Member  
   Joined: 05 June 2008 Status: Offline Points: 258  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 14 July 2008 at 1:07pm | 
 
| 
   
    
   Thanks for the idea. 
   
  Then I wondered why the CodeJock sample toolbar worked OK. That doesn't use Pictureboxes. Aha..... they just use the standard VB controls ![]() So I tried that. The standard VB controls work OK. The problem is only with the CodeJock controls.  | 
 |
| 
   
     
     Chris (Manchester, UK) -- www.abc6.co.uk  ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
     
   
   | 
 |
![]()  | 
 |
    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  |