Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 General Discussion » How to hide some tabs Collapse All
Subject Author Date
himanshu joshi Jun 13, 2007 - 2:54 AM

I have created a ribbon bar application with 5 ribbon tabs inside it.

How can i selectively show them...means hide some and show some tabs at one point and some other time hide different tabs and show
different tabs

Could you help me in this

thanks
himanshu

Alain Frisch Jun 13, 2007 - 4:57 AM

In Prof-UIS ribbon, all ribbon elements are represented by ribbon nodes (CExtRibbonNode and classes derived from it). These ribbon nodes constitute the "skeleton" of the ribbon. You can see how different ribbon nodes are created in the ribbon samples (come with Prof-UIS). So you can add or remove nodes in your code. You can apply the changes by assigning the modified top ribbon node to the ribbon bar:

m_wndRibbonBar.SetButtons( m_pRibbonNode );
Each time you change the ribbon node tree and apply the above method, you will see the appropriate changes in the ribbon.

himanshu joshi Jun 14, 2007 - 5:30 AM

If i have only one m_pRibbonNode and inside that there is object of CExtRibbonNodeTabPageCollection which contain ribbon tab pages
how will i selectively hide and show certain ribbon pages.

himanshu

Technical Support Jun 14, 2007 - 6:50 AM

This option is currently not supported. Please recreate the ribbon tree node again, without branches you want to hide. Finally please assign a new ribbon node by invoking the CExtRibbonBar::SetButtons() method.