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 » Resizing of ControlBar Collapse All
Subject Author Date
Anil Siddhpura Jun 2, 2009 - 11:37 PM

I used CExtDynamicControlBar in dockable form.


Its hiding automatically.


Now I want to prevent resizing of this control bar.


For that what I have to do ?

Technical Support Jun 3, 2009 - 4:31 AM

You can prevent a resizable control bar to be resized in 100% of cases only if there is only one control bar in your application. Resizable control bars depend on each other. If one bar is resized, this typically affects the size or position of other bars. Please let us know more details about your task. Please also note, if your non-resizable bar is docked into the same tabbed container with other bars, there is a design conflict between your non-resizable bar and other resizable bars. The resizable bars are resizable by design and their resizing is typically should not be limited.
There are two virtual methods in the CExtControlBar class which you can override in your CExtDynamicControlBar-derived class and do not invoke the parent class method for preventing bar resizing:

   virtual void _RowResizingStart();
            virtual void _RowRecalcingStart();

If your bar is docked somewhere at the left or at the right side of the main frame window, then the _RowResizingStart() virtual method is invoked for performing bar resizing in horizontal direction and the _RowRecalcingStart() virtual method is invoked for performing resizing in vertical direction. The same methods are invoked for bars docked at the top and bottom sides of the main frame window but the _RowResizingStart() virtual method is invoked for performing bar resizing in vertical direction and the _RowRecalcingStart() virtual method is invoked for performing resizing in horizontal direction.