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 » Docking Toolbar and MenuBar side by side Collapse All
Subject Author Date
Neville Franks Jun 30, 2004 - 3:39 PM

Hi,
I’d like to be able to dock a toolbar beside the main menu bar and can’t get this to work. Is this possible and if so how?


Thanks,
Neville

Technical Support Jul 1, 2004 - 8:23 AM

Dear Neville,

The menu bar is designed to occupy the full row or column and we treat such behavior of the menu line as generally accepted. But you can derive a class from the CextMenuControlBar and override the following internal virtual methods:

virtual bool _GetFullRowMode() const;
virtual void _RecalcPositionsImpl();
virtual void _RecalcLayoutImpl();

Your implementation of these methods should invoke the methods with the same names as those in the CExtToolControlBar class. Besides you need to set CExtMenuControlBar::m_bMultiRowLayout to false in the constructor of your class. As a result, your menu bar will have the behavior of the toolbar and you can dock a toolbar beside it.

Neville Franks Jul 2, 2004 - 1:42 AM

Thanks. I agree this not very standard and will leave it for now. I have a small menu in Surfulater and thought the user may want to make use of the space beside it.


Maybe this can be done as an option in CextMenuControlBar in the future to save us having to derive yet another class. :-)


Thanks,
Neville