Print Page | Close Window

Disable/Enable RibbonBar Tab

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=4055
Printed Date: 21 June 2025 at 12:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable/Enable RibbonBar Tab
Posted By: jcollier
Subject: Disable/Enable RibbonBar Tab
Date Posted: 24 April 2006 at 5:29pm
Is there any way to Disable a ribbonbar tab which, in turn, disables all ribbonbar buttons within that tab?  I'm using 10.1.1 with VB6

Created tab like so:

Set RibbonBar = CommandBars.AddRibbonBar("MainRibbon")
RibbonBar.EnableDocking xtpFlagStretched
Set tabHome = RibbonBar.InsertTab(1000, "Home")

Try to disable tab like so:

CommandBars.FindControl(,1000,,True).Enabled = False

But it won't find the tab.

Surely I'm just missing something.

Thanks!



Replies:
Posted By: jcollier
Date Posted: 25 April 2006 at 12:06pm
Anyone?


Posted By: Oleg
Date Posted: 27 April 2006 at 9:06am
Use Update event to Enable/Diasable controls.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jcollier
Date Posted: 27 April 2006 at 9:33am
I Know to use the update event but the line:

CommandBars.FindControl(,1000,,True).Enabled = False

isn't even finding the ribbontab.  That's the problem.


Posted By: Oleg
Date Posted: 27 April 2006 at 4:05pm

Hello,

RibbonTab is not control object. Use

RibbonBar.Tab(Index)

property.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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