![]() |
Disable/Enable RibbonBar Tab |
Post Reply
|
| Author | |
jcollier
Senior Member
Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Quote Reply
Topic: Disable/Enable RibbonBar TabPosted: 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! |
|
![]() |
|
jcollier
Senior Member
Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 April 2006 at 12:06pm |
|
Anyone?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 April 2006 at 9:06am |
|
Use Update event to Enable/Diasable controls.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jcollier
Senior Member
Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 April 2006 at 4:05pm |
|
Hello, RibbonTab is not control object. Use RibbonBar.Tab(Index) property. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |