Print Page | Close Window

(WorkAround) RibbonBar Group enable/disable

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=13276
Printed Date: 18 May 2024 at 1:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: (WorkAround) RibbonBar Group enable/disable
Posted By: chrisABC
Subject: (WorkAround) RibbonBar Group enable/disable
Date 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



Replies:
Posted By: Oleg
Date Posted: 28 January 2009 at 7:13am
No.
You can add Update Handler and check if Control.RibbonGroup is group you need.


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


Posted By: chrisABC
Date Posted: 28 January 2009 at 8:33am
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



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