![]() |
Groups on the Quick Access Toolbar |
Post Reply ![]() |
Author | |
mrmathis ![]() Senior Member ![]() ![]() Joined: 17 May 2007 Location: United States Status: Offline Points: 105 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |