Print Page | Close Window

Code to change controls on Ribbonbar created with

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=19400
Printed Date: 05 October 2024 at 9:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Code to change controls on Ribbonbar created with
Posted By: ruschmeier@truncad.d
Subject: Code to change controls on Ribbonbar created with
Date Posted: 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“

None of them work. What do I do?

 

Regards and have a great day,

Frank




Replies:
Posted By: SuperMario
Date 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:
http://codejock.com/support/articles/com/commandbars/cb_26.asp - http://codejock.com/support/articles/com/commandbars/cb_26.asp



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net