(WorkAround) RibbonBar Group enable/disable |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
Posted: 28 January 2009 at 6:35am |
I have a RibbonBar with several Tabs, each containing several Groups, and each Group contains several Controls.
I can set Tab.enabled = false, and I can set Control.enabled = false. But I cannot see how to set a Group.Enabled = false. Is there a property like this?? |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
No.
You can add Update Handler and check if Control.RibbonGroup is group you need.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
OK thankyou.
I have done it now like this: Sub SetGroupEnabled( GroupId, TrueOrFalse) Dim X as long, tmpGRP as RibbonGroup set tmpGRP = RibbonBar.FindGroup(GroupID) For X = 0 to tmpGRP.Count - 1 'look at all Controls in Group tmpGRP.Item(X).Enabled = TrueFalse 'set Control enabled or not Next End Sub (maybe also needs error handling etc) |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
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 |