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 General Discussion » RibbonBar Dynamic Page insertion Collapse All
Subject Author Date
Shailesh Nikam Dec 7, 2006 - 2:35 AM


I want to insert RibbonNodeTab pages at runtime on click of some of the buttons on RibbonBar.

Thanks in advance

Technical Support Dec 7, 2006 - 2:01 PM

The ribbon bar and ribbon page windows are derived from the menu bar, which, in turn, is derived from the toolbar. So you can handle button clicks in the same way as you handle toolbar/menu commands. Please note the MFC’s command updating mechanism is used in the ribbon bar absolutely like in toolbars and menus. So you can add the command updating handler for a button and invoke pCmdUI->Enable() to disable or enable it either in the ribbon bar or in a menu.