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 Tech Support » CExtRibbonPage Collapse All
Subject Author Date
Chris Anderson Jun 5, 2007 - 10:57 AM

Is there any way to convert a Prof UIS menu bar which contains menu items added dynamically into a CExtRibbonPage?

Chris Anderson Jun 6, 2007 - 11:00 AM

We dont really care about the informativeness level and would like to add all the items at the second level as buttons inside the top-level button group and other sub popups as popup menus that are displayed as popup menus from the second level buttons. Also, we will not be having a toolbar. Would it still be difficult to implement such a conversion? I am just trying to find the easiest way to convert my CExtMenuControlBar to a CExtRibbonBar/CExtRibbonPage without having to write too much code!

Chris Anderson Jun 5, 2007 - 12:54 PM

The reason why I was asking this is that we need an option wherein users may want to the see either the menubar or the same information in the ribbon page. We dont even need the ribbon bar. Since the same items need to be displayed in both the menubar as well as the ribbon page it would have been good if there was a way to interchangeably switch between these 2 UI elements without having to write too much code!

Technical Support Jun 6, 2007 - 7:24 AM

The top level menu can be converted into button groups in the ribbon page. The second level are buttons inside each group, other levels are popup menus displayed from buttons. The only problem is in the second level buttons. Some of them are more important than other. So more important buttons should have different rules for changing informativeness level. The recursive conversion function will not know which buttons are more important and all the buttons will behave equally.

Besides you should note the ribbon replaces both toolbars and menus. So the ribbon is not an exact replacement for the menu bar and it is not actually easy to implement such switching.



Technical Support Jun 5, 2007 - 12:33 PM

It is possible to code some function which converts the menu tree to the ribbon, but the inner structures of these controls are quite different. The menu has one classic top level. The next levels can be commands and sub levels. The ribbon has two top levels: tab pages and ribbon groups (inside tab pages). At least this means your menu should have popup submenus only at the first level for representing ribbon tab pages and popup submenus only at the second level for representing ribbon groups. Besides menu commands have no information about informativeness levels and behavior used in ribbon buttons. So potentially is possible to write such code, but we guess it may turn out to be specific for one particular project only and even may require to the menu resources in the source project to be modified.