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 » CExtControlBar Docking Collapse All
Subject Author Date
Listofer Andre Feb 3, 2007 - 11:29 AM

Hi,

I have created three control bar and I want all of them to be on left side of window. But I dont want all to be get displayed at loading of application(They share the screen area of left side and get displayed one below other as shown in following picture). I want only one to be on the screen and other 2 in autohide state. Can you tell me how to do this.

----------controlbar1----------
| |
| |
| |
|----------controlbar2-----------
| |
| |
| |
|----------controlbar3---------
| |
| |
| |
|--------------------------------

Thanks,
Listofer

Technical Support Feb 6, 2007 - 4:49 AM

First of all, all the bars should be initially docked with the left side of the main frame window and then you can hide all of them using the CFrame::ShowControlBar() method or switch them into the auto-hidden state using the CExtControlBar::AutoHideModeSet() method.

The first control bar should be docked with the left side of the main frame window using the CExtControlBar::DockControlBarInnerOuter() method which makes it occupying a new column of bars. The second bar should be docked relatively first using the CExtControlBar::DockControlLTRB() method with the AFX_IDW_DOCKBAR_BOTTOM side code and 67 percent value which is assumed 2/3 height of the first bar. Now first bar is at its desired location when the second bar is occupying location of both second and third bars. Next step is to dock the third bar relatively to the second one using the CExtControlBar::DockControlLTRB() method with the AFX_IDW_DOCKBAR_BOTTOM side code and 50 percent value which is assumed 1/2 height of the second bar. Now all the bars are at their desired locations and each of them is occupying approximately 1/3 height of available column height.