Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Automatic hide empty group?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Automatic hide empty group?

 Post Reply Post Reply
Author
Message
 Rating: Topic Rating: 1 Votes, Average 4.00  Topic Search Topic Search  Topic Options Topic Options
maxxan View Drop Down
Groupie
Groupie


Joined: 15 July 2009
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote maxxan Quote  Post ReplyReply Direct Link To This Post Topic: Automatic hide empty group?
    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?
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.125 seconds.