Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Code to change controls on Ribbonbar created with
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Code to change controls on Ribbonbar created with

 Post Reply Post Reply
Author
Message
ruschmeier@truncad.d View Drop Down
Groupie
Groupie


Joined: 12 January 2012
Location: Germany
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote ruschmeier@truncad.d Quote  Post ReplyReply Direct Link To This Post Topic: Code to change controls on Ribbonbar created with
    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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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:
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.