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 » wrapping toolbar content in a dialog box Collapse All
Subject Author Date
Chris Anderson Apr 30, 2007 - 10:14 AM

I have a toolbar in a dialog box which needs to wrap as the dialog is resized. The toolbar is always docked and cannot float. I need the buttons in the toolbar to be always displayed (the buttons should wrap to the next row. something like the menubar on the frame window). Is there an easy way to do this?

Chris Anderson May 2, 2007 - 11:46 AM

Works. Thanks

Chris Anderson May 1, 2007 - 4:39 PM

OK I this only works if you use SetWrap and hard code the positions where wrapping will occur. How can I provide for dynamically wrapping
the toolbar buttons based on the dialog width and height?

Technical Support May 2, 2007 - 8:19 AM

Please download and try a test project that we coded to demonstrate you how it works.

Technical Support May 1, 2007 - 12:58 PM

You can achieve this by overriding the OnQueryMultiRowLayout() method in a CExtToolControlBar-derived class in this way

bool OnQueryMultiRowLayout() const
{
      ASSERT_VALID( this );
      return true;
}