Print Page | Close Window

How to handle different ribbons

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=20508
Printed Date: 05 May 2024 at 7:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to handle different ribbons
Posted By: Alex H.
Subject: How to handle different ribbons
Date 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



Replies:
Posted By: Alex H.
Date Posted: 10 January 2013 at 4:34am
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?



Posted By: rdhd
Date Posted: 01 February 2013 at 5:48pm
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.


Posted By: Alex H.
Date Posted: 13 March 2013 at 5:25am
Hello out there :-)
Has anyone found a solution for that?
@Codejock: If not: any plans to fix this problem in the next version?

Thanks

https://discussions.apple.com/thread/4854696?start=0&tstart=0 -




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