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 » CextResizableDialog docking positions Collapse All
Subject Author Date
Michael Clapp Jul 25, 2007 - 11:43 AM

Our application is based on the FixedSizePanels example, but we are using 2 CExtResizableDialogs. We can get the CExtResizableDialogs to dock, but want to change the positions where they dock from:

+------------------+-------+
| | |
| | |
| | |
| | |
+------------------+-------+
| |
+---------------------------+

to

+------------------+-------+
| | |
| | |
| | |
| | |
+------------------+ |
| | |
+---------------------------+

Is this possible?

Michael Clapp Jul 27, 2007 - 12:05 PM

CExtPanelControlbar.zip has been emailed..

Michael Clapp Jul 26, 2007 - 5:18 PM

We are able to dock the first CExtPanelControlBar on the right side of the frame using DockControlBar.

When we try to dock the second CExtPanelControlBar on the bottom of the frame using
DockControlBar(&m_wndPanelDialog, AFX_IDW_DOCKBAR_BOTTOM,&rect);

(rect is set such that its width is less than the left side of the first docked CExtPanelControlBar)

the second bar seems to stretch to fill the entire bottom row, pushing up the first CExtPanelControlBar which was docked on the right side.

When the second CExtPanelControlBar floats, it seems to be the correct size. How do you prevent the CExtPanelControlBar from changing size when it is docked?

Technical Support Jul 27, 2007 - 10:59 AM

Would you show the entire code which docks all the control bars in your project?



Technical Support Jul 25, 2007 - 12:35 PM

We can guess you are using CExtPanelControlBar-fixed size control bars as containers for your resizable dialogs. The panel bars are docked initially exactly like toolbars. You can read about this here.