![]()  | 
 
Code to change controls on Ribbonbar created with | 
 
    Post Reply  
   | 
  
| Author | |
   
   ruschmeier@truncad.d  
   
   Groupie  
   Joined: 12 January 2012 Location: Germany Status: Offline Points: 17  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Code to change controls on Ribbonbar created withPosted: 12 January 2012 at 4:22am  | 
 
| 
   
    
   
Hi there, 
   
  I hope that there is someone out there who can help me. I am new to use Codejocks Components. We use VB6 to develop an application and I created a ribbonbar in the Designer. I can load the Ribbonbar and it shows up well on the form. But I cannot get control of the controls placed on the ribbon. I get the event and ID of a control which has been clicked, but I need to add images to a xtpControlGallery and I would like to set a toolbar visible=true and false by code. I have tried 
 
   "CommandBars.item(IDR_KORPUSEINSTELLUNG).visible
= False” and “CommandBars.FindControl(,IDR_KORPUSEINSTELLUNG).visible
= False“ and „CommandBars.DesignerControls.Find(,IDR_KORPUSEINSTELLUNG).visible = False“  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 12 January 2012 at 10:13am | 
 
| 
   
    
   Where is the control you are looking for?  Perhaps you need to search recursively? 
   
  To hide a toolbar just do this: Commandbars(1).Visible = False I suggest checking out Actions too, it might be easier for you: 
    | 
 |
![]()  | 
 |
    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  |