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 General Discussion » toolbar on multiple line Collapse All
Subject Author Date
Borremans Pierre Dec 1, 2009 - 7:17 AM

When I reduce the size of my application, each toolbar must be placed below the other.


Is it possible ?

Technical Support Dec 9, 2009 - 1:30 PM

You can create a test project with your improved toolbar behavior implementation and send it to us. We will check it.

Borremans Pierre Dec 1, 2009 - 8:44 AM

and each toolbar must keep is maximum size (no hidden icon) how to do ?

Technical Support Dec 2, 2009 - 3:31 AM

By default, the toolbar’s minimum size is determined by the size of toolbar when it has at least one visible button. If several toolbars are docked into one row and you decrease the width of the main frame window, the toolbars decrease their size too. If the minimum size of each toolbar is reached, they automatically wrap. It’s possible to implement the same behavior but with toolbars keeping a large width/height. You can override the CExtToolControlBar::_SizeToolBar() virtual method, determine whether the bar is docked and simply return without invoking the parent class method invocation. You can determine whether a toolbar is docked using the dialog control identifier of toolbar’s parent window. It’s one of the AFX_IDW_DOCKBAR_*** values.

Borremans Pierre Dec 8, 2009 - 9:11 AM

I override the method _sizeToolbar() and only do a return;


but when I resize my application my toolbar is reduce. Do you have a sample source ?