Professional UI Solutions
Site Map   /  Register


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 » setting docking window size Collapse All
Subject Author Date
Andrew Harding Feb 12, 2007 - 11:21 AM

My application is layed out as described below where T = __EDBS_DOCUMENT and D = __EDBS_DOCKED style windows:


So I have a tabbed __EDBS_DOCUMENT style window in the upper left corner and then outside the tab control I have 3 __EDBS_DOCKED style windows.

I would like to be able to use the DockControlBarLTRB() function to specify the percentage of the client window that each window should take up. I’m unable to do this however because the DockControlBarLTRB() doesn’t let me specify the tab control as a target bar. The tab control seems to like to take up the majority of the window space and so my docking style windows are squished along the edges.

I would like the tab control to take up about 30% of the horizontal space and 50% of the vertical. How do I change my code to accomodate this? I’m using the commercial version of prof-uis 2.50.

Technical Support Feb 13, 2007 - 1:11 PM

You wrote: I would like the tab control to take up about 30% of the horizontal space and 50% of the vertical.

This means: The column of bars at right should occupy 70% of the horizontal space and the row of bars at bottom should occupy 50% of vertical space.

This task is based on the CExtControlBar::DockControlBarInnerOuter() method invoked for docking one bar at left and second bar at bottom. The third step is to dock the third bar relatively to the first bar using the CExtControlBar::DockControlBarLTRB() method. So, the CExtControlBar::DockControlBarInnerOuter() method should be used for making the first bar occupying 70% of horizontal space at right and second bar for occupying 50% of vertical space at bottom. But the CExtControlBar::DockControlBarInnerOuter() method uses pre-defined desired row height/column width information specified with invoking of the CExtControlBar::SetInitDesiredSizeHorizontal()/CExtControlBar::SetInitDesiredSizeVertical() methods which are using size parameters in pixels. This means you should specify horizontal size of fist bar which is approximately 70% of main frame width and vertical size of the second bar which is approximately 50% of main frame height before docking these bars with invoking of the CExtControlBar::DockControlBarInnerOuter() method.