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 » Ribbon bars and docking. Collapse All
Subject Author Date
Malcolm D Jul 11, 2008 - 12:29 AM

Hi,


 


I’m trying to fit a ribbon bar into an existing project.  There are already various toolbars, some of which will remain.  Currently, when I create a ribbon bar, following the sample code, other toolbars seem to be docked first.  In the sample, it is not possible to dock the Theme Switcher toolbar above the ribbon bar, nor vertically along side the ribbon bar (only below it).  I can’t see any code in the demo that enforces this, but in my own project toolbars happily dock above it and along side it vertically.  The window’s title bar, which can be used to drag the window around, ends up part-way down the window with toolbars above it.  Very odd.  Any thoughts about all this?


I’m also getting a lot of failed ASSERTions at the moment, eg in CExtToolControlBar::OnCustomizeRegisterBar() because it’s getting called twice somehow.  I’ll look at it some more, but just thought I’d mention it in case you had any thoughts.


 


Thanks,


Rob.

Robert Webb Jul 14, 2008 - 2:15 AM

Actually I thought I was creating it first, but turned out there was another base class below CMainFrame which was creating other stuff first.  Your suggestion pointed me in the right direction.


Thanks,

Rob.

Technical Support Jul 12, 2008 - 9:37 AM

Please note: position of any non-re-dockable control bar depends on its Z-order. If you create two non-re-dockable bars near the same side of the frame window, then first will be closer to outer frame border and second will be closer to center. The ribbon bar control should be created before any other control bars. This will allow ribbon to occupy part of the parent frame window which is closest to caption. We guess this is the main problem in your project. It would be also helpful to take a look at main frame’s source code to find any additional issues and provide you with more comments.