Print Page | Close Window

Groups on the Quick Access Toolbar

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=13162
Printed Date: 28 February 2025 at 11:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Groups on the Quick Access Toolbar
Posted By: mrmathis
Subject: Groups on the Quick Access Toolbar
Date Posted: 13 January 2009 at 5:13pm
I have an MDI app that uses multiple ribbons and QATs, each specific to a different type of document.  As I transition between documents, I clear and recreate the QAT (using LoadCommandBars("docType")), then clear & rebuild the ribbon.
 
I've just noticed that if I add a group to the ribbon, it initially looks fine.  However, if I close that document, then open another one of the same type, the group's dropdown contains controls from a different group, seemingly a random selection.  The button text looks fine.  I can't see a pattern to the group that the controls come from.
 
I can't reproduce this in a sample, but then I can't find a sample with multiple ribbons & QATs. 
 
I tried reversing some of my logic so that I clear/restore the ribbon before the QAT, and that seems to work.  Is the solution that simple?  If so, I'd like to understand more about why that is the case, since I honestly don't recall whether I had other factors to consider when I laid out the code they way it is now.
 
 


-------------
--Mike



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