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 » Resize CExtControlBar programatically. Collapse All
Subject Author Date
jb lee May 17, 2005 - 9:39 AM

Can I resize CExtControlBar object or CExtControlBar derived class instance programatically?

alexey Shetinin Jun 16, 2005 - 7:58 AM

Hello,


Tell me, please, if it’s planning to develop something like subj control or it must be defined by myself with using CExtGridCellStringTE?


Can you provide some sample code about this?

Technical Support May 17, 2005 - 10:36 AM

You can specify the initial desired size only by invoking CExtControlBar::SetInitDesiredSize...(). The programmatically resize a control bar at run time has no point. If you change the size of a particular control bar, this may affect size and positions of other control bars in the same row, in the same column, in the same tab group, in other rows and/or columns. The resizable control bars were designed to be fully resizable without any limits. Please let us know more on what you actually need so that we can help you.

jun liu May 17, 2005 - 9:26 PM

I also want to resize the CExeControlBar, the child window may be a dialog based window, when i show/hide items in the dialog, I want to adjustment the parent window to fit for it size.

Technical Support May 19, 2005 - 3:06 AM

This feature still needs to be discussed in details. We would like to ask you to conduct a simple experiment with the full version of Visual Studio 2005 beta 1 or beta 2 (or any express version). The text search bar that is available with the Ctrl+Shift+F keys in the new Visual Studio is able to be resized by clicking the "+" button. But this feature works fine until the text search bar is a single bar in its floating miniframe window. If you create a compound floating mini frame window with two bars in two rows or columns and try to click the "+" button on text search, then you can see interesting resizing buggy effects and we understand why this takes place. You can also perform an experiment with more complex palettes. That is why we think limiting resizable bars in size is not a good idea.