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 » CExtToolControlBar without resizing Collapse All
Subject Author Date
Olaf Reusch Jun 29, 2007 - 9:19 PM

How i can prevent that the toolbar hide buttons on resize? I want a fixed size toolbar

Olaf Reusch Jul 9, 2007 - 8:12 PM

You have seen the screenshots that i have linked? The toolbar has this function overloaded. No ExpandButton is visible, but my problem is that the toolbar buttons are hiden, when not enough space to show all of them. I want that all buttons are visible, even if not enough space to show all buttons. I need a way to disable this behavior.

Olaf Reusch Jul 8, 2007 - 8:18 PM

Here are 2 images. This explain my problem.
http://www.abload.de/image.php?img=righthz3.jpg <- here we see a complete toolbar
http://www.abload.de/image.php?img=wrongvmj.jpg <- here we see a resized window with a toolbar that has not all buttons visible

How i can make that the toolbar has fixed size, that other toolbars change his row, when space is empty and not hide buttons from toolbar?

Technical Support Jul 9, 2007 - 10:13 AM

We guess you need to use the following toolbar class:

class CToolbarForOlaf : public CExtToolControlBar
{
public:
      virtual CExtBarContentExpandButton * OnCreateBarRightBtn()
      {
            ASSERT_VALID( this );
            return NULL;
      }
};

Olaf Reusch Jun 30, 2007 - 12:34 PM

Hi, i mean the first one. The buttons hide one by one, how i can prevent this behavior?

Technical Support Jul 1, 2007 - 8:55 AM

Would you clarify exactly what the behavior you need? Or send us a screenshot that demonstrates what you want to achieve? When there are no room for all toolbar buttons, the toolbar should have a lesser width in any case.

Technical Support Jun 30, 2007 - 11:38 AM

We are sorry but it is not completely clear what you actually mean. If a toolbar is docked horizontally and you resize the application window so its width becomes too small for the toolbar to contain all its buttons, the buttons hide one by one. If the toolbar had a fixed size, the application width would be determined by the width of this toolbar. Moreover, if you have dockable more than dockable toolbars and dock them into a same row, the application width would be as long as all your toolbars. So please let us know more about what you need to achieve.