Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » How to Show/Hide Ribbon Tabs selectively Collapse All
Subject Author Date
Brian Horn Jun 15, 2007 - 7:36 AM


We have created a ribbon bar application with 5 ribbon tabs inside it by using
m_wndRibbonBar.SetButtons ( m_pRibbonNode );

Inside this Ribbon Node ( m_pRibbonNode ) there is object of CExtRibbonNodeTabPageCollection which contains 5 tab pages .

I want to hide some of the tab pages when application launches and then using
Some click action I want to show remaining tabs which were hidden previously.

Could you suggest some method/way to achieve this?

We will appreciate your quick response as we are heading towards our release.

Thanks and Regards

Technical Support Jun 15, 2007 - 9:44 AM

At the moment you can only show or hide tab pages by adding or deleting the corresponding ribbon nodes to/from the ribbon tree (which is represented by the top ribbon node m_pRibbonNode) and then assigning it to the ribbon control:

m_wndRibbonBar.SetButtons ( m_pRibbonNode );
In other words, you can create an initial tree with for example 3 pages, and later modify the ribbon tree. You can find an example of hiding and showing ribbon groups in the RibbonPage sample. You can show and hide ribbon tabs in a similar way.