Print Page | Close Window

SUGGESTION: "Empty" RibbonBar Groups

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=5286
Printed Date: 20 June 2025 at 5:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SUGGESTION: "Empty" RibbonBar Groups
Posted By: DDJJ
Subject: SUGGESTION: "Empty" RibbonBar Groups
Date Posted: 13 October 2006 at 5:02pm
In 10.1.1 when a RibbonGroup's controls were all set with their Visible property to false, the RibbonGroup itself was automatically not displayed in the RibbonBar.
 
With 10.3.1, this is no longer the case.  I kind of liked how this was handled previously. 
 
Cheers.



Replies:
Posted By: Oleg
Date Posted: 14 October 2006 at 4:23am
Hi,
 
now you can set Group.Visible property to false.


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


Posted By: DDJJ
Date Posted: 14 October 2006 at 11:11am
If you have multiple Tabs, and multiple Groups, each Group having multiple Controls which are frequently hidden/unhidden, it can get kind of difficult to manage using the Visible property.  You can iterate through these settings as follows:
 
For i = 0 To g_Group.Count - 1
     If g_Group.Item(i).Visible Then
            'do something
     End If
Next
 
Our problem is that the Control's Visible property is only relevant if the Tab is selected which contains the Group which contains the Control (???).  In other words, if the Group and related Controls are under a Tab which is not currently selected, the Visible property in the above iteration will return False even if you have set it to True.
 
Just thought it might be a good idea to provide an option to hide groups where all associated controls are hidden...
 
Thanks, Oleg.
 



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