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 » Controlbar Dockign Collapse All
Subject Author Date
Shailesh Nikam May 16, 2007 - 2:59 AM

Hi,

I want to create application in which I want to dock controlbars only to left side of window or to right hand side of the winodw.
I dont want to see docking control that appears on the screen.

Can you tell me how to do it?

Regardsd,
Shailesh Nikam

Technical Support May 16, 2007 - 12:16 PM

The resizable control bars were designed as windows without any restriction in size and locations because each bar is always very depend on neighborhood bars. If you disable particular location for one bar, then you will also had to disable the same location for other bars which even have no location restrictions:


1) We have two bars in one tabbed container. First one can be docked to the left/right only. Second one have no restrictions. Whether the entire tabbed group should be enabled for top/bottom docking?


2) We have 17 bars docked into one complex floating palette using different horizontal/vertical splitters and tab containers somewhere. Only one of these bars restricted to be docked at the left/right side of the main frame window. Whether the entire complex floating palette should be enabled for top/bottom docking?

Geert Mys May 16, 2007 - 6:19 AM

Hi,

I guess that the following constants and code could help you:

#define CBRS_ALIGN_LEFT 0x1000L
#define CBRS_ALIGN_TOP 0x2000L
#define CBRS_ALIGN_RIGHT 0x4000L
#define CBRS_ALIGN_BOTTOM 0x8000L
#define CBRS_ALIGN_ANY 0xF000L

m_wndToolBarStandard.EnableDocking(CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT);

Function and constants are defined in MFC.

Best regards,
Geert.