Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SUGGESTION: "Empty" RibbonBar Groups
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SUGGESTION: "Empty" RibbonBar Groups

 Post Reply Post Reply
Author
Message
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Topic: SUGGESTION: "Empty" RibbonBar Groups
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2006 at 4:23am
Hi,
 
now you can set Group.Visible property to false.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.