Print Page | Close Window

Automatic hide empty group?

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=19323
Printed Date: 24 November 2024 at 8:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Automatic hide empty group?
Posted By: maxxan
Subject: Automatic hide empty group?
Date Posted: 19 December 2011 at 9:58am
I've got some buttons in context tabs that are automatically set to visible/hidden in its update command handlers from the current view.

The problem is that for some views the ribbon group becomes empty, which is ugly. I thought I could check in OnRibbonUpdate for empty group and hide it.

The problem with that is that when a group is hidden, the buttons inside it will never get a call to its update handlers. So if another window gets focus and the buttons/group should be visible, it still is hidden.

Is there any better way to hide empty groups or maybe force the update handlers for the buttons inside the group to be called even if the group is hidden?



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