How to handle different ribbons |
Post Reply |
Author | |
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
Posted: 04 January 2013 at 4:33am |
If you have different kind of ribbons in one application like e.g. Outlook.
What is the suggested way to handle this? Do i have to create a new ribbon control or is it better to change the one and only ribbon? Or can i create multiple ribbons and switch between them by showing only one of them at a time? Thanks |
|
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
|
Outlook 2010 uses multiple "Start" Tabs for different areas.
You can see it in the customization dialog: So it looks like Outlook creates al Tabs at once and then shows/hides them on demand. Question: The Caption "Start" has a different display in the cutomization dialog. How can I get the same behaviour? |
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
We generally keep a single ribbon and empty it out and rebuild it when we switch document types or load a user's customized ribbon (UI layout).
I have also created a separate ribbon and loaded it for automation purposes. I ran into a few issues with that. I actually created a new CommandBars object and added the ribbon to it. I had to call SetSite (myFrame), call pCommandBars->EnableDocking() (or I crashed where CJ accessed NULL dockbar pointers) and I called pCommandBars->SetTheme. Also I had a problem with both ribbons trying to display (pRibbonBar->SetVisible(FALSE) took care of that). I don't recall if I tried using the frame's CCommandBars object to create multiple ribbons but I wouldn't think that would be a problem. Generally I think you just have to know when to call SetVisible to undisplay one ribbon and display another. |
|
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
|
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 |