Print Page | Close Window

How to open a Ribbon-BackstageTab by code?

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=19633
Printed Date: 22 November 2024 at 8:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to open a Ribbon-BackstageTab by code?
Posted By: Jebo
Subject: How to open a Ribbon-BackstageTab by code?
Date Posted: 04 April 2012 at 5:17am
I need to open/show a Ribbon-BackstageTab by code.

How can I do that please?


-------------
[Sig removed by Admin: Signature can't exceed 40GB]



Replies:
Posted By: Oleg
Date Posted: 04 April 2012 at 11:15am
You need to specify default item and then show backstage:
Dim ControlInfo As RibbonBackstageTab
Set ControlInfo = BackstageView.AddTab(1000, "Info", pageBackstageInfo.hwnd)    ControlInfo.DefaultItem = True
 
RibbonBar.SystemButton.Execute


Posted By: oatleyn
Date Posted: 05 June 2012 at 2:51pm
this makes sense.  But what if I want to show a different backstage tab to the default one? Taking the Active X ribbon sample for example, on the default backstage tab (the help/info tab), there is an "options" button.  The options are on a different backstage tab.  The example doesn't include the code for this to button to open up the other backstage tab, so I tried to work it out for myself.  But I can't get anything to work. Cry




Posted By: DKnowles
Date Posted: 03 July 2012 at 5:07am
Did you manage to find a solution Oatleyn?? I've hit the same problem.  I have 5 tabs the first tab is the default tab and when it opens up the first tab is activated. But under certain circumstances I want to programtically activate the third tab. At the moment I'm having to set the third tab to be the default tab (which I dont want it to be), close the backstage view and then activate it again, then set the first tab to be the default again.....

Very cludgey and even though it works it doesn't look great as the view seems to flash as your closing and reopening. 



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