![]() |
Multiple ribbons |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 19 October 2006 at 4:30pm |
Hi!
I have an MDI application with several different views. Each view needs its own ribbon. When a view is selected its ribbon should be loaded. I have not been able to find a solution for this. I read a post here where the ribbon was loaded into the child frame, but that just looks weird if you ask me.
Hence, I want multiple ribbons where only one is visible at a time. Do I need to remove and re-add a ribbon in order to accomplish this?
Thanks in advance!
/Chris, Sweden |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
I managed to swap ribbons by adding them all in CMainFrame::OnCreate and then toggle their visibility in CXXXFrame::OnMDIActivate. This turned out to be a bad solution. You expect the swap to be instant, but it takes roughly one second.
There must be a better solution for this, or have I misunderstood the concept of ribbons? Maybe I should use that specialized tool-ribbon for my views?
Any ideas?
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
How is it possible that you find the solution after you have posted a question at this forum?
![]() I found the way:
ON_UPDATE_COMMAND_UI(XTP_ID_RIBBONCONTROLTAB, OnUpdateRibbonTab) Then I simply show/hide the tabs. Only one ribbon. Smart =)
Thanks anyway!
|
|
![]() |
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 |