We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Docking Manager and Office2007Demo

Hello,

I was wondering how to make Office2007Demo work with DockingManager. As all ribbon-related components are Panel-hosted, they remain in the client area of the main window. Therefore, DockingManager does not feel obliged to exclude them from its working area calculation. In other words, DockingManager does not recognize them as non-client controls (e.g. menus).

Are there any suggestions how to approach this problem?

Regards,
Dmitry.

1 Reply

DB Dmitry Bakuntsev July 27, 2006 09:10 PM UTC

The answer turned out to be quite simple. DockingManager asks FormController to adjust the client rectangle where DockingManager can lay out controls. FormController looks up all top-level controls that are docked, and reduces the original window client rectangle by their size. Therefore, the only thing that Office2007Demo really lacked was docking property setting for its panels comprising the Ribbon control components (e.g. main menu and shortcuts toolbar, panel1, etc).

Regards,
Dmitry.

Loader.
Live Chat Icon For mobile
Up arrow icon