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 » Preventing CExtPanelControlBar from redocking and showing close button when docked.. Collapse All
Subject Author Date
Michael Clapp Jul 17, 2007 - 3:34 PM

Hi ..
Our applicaiton has a Dialog Bar implementation similar to the FixedSizePanel example (Panel with Dialog). We would like to prevent the ControlBar from redocking once we dock it after its been created. Also we would like to have the close button displayed when it is docked..

Is this possible?

thanks,
Mark F.

Technical Support Jul 18, 2007 - 8:58 AM

The following set of virtual methods should simply return false if you want to lock only one bar:

 CExtControlBar::_DraggingIsEnabled()
 CExtControlBar::_RowResizingIsEnabled()
 CExtControlBar::_RowRecalcingIsEnabled()
 CExtControlBar::_FloatStateChangingIsEnabled()
 CExtControlBar::_NcMenuButtonIsEnabled()
 CExtControlBar::_ClosingIsEnabled()
 CExtControlBar::_AutoHidingIsEnabled()
 CExtControlBar::OnConstructDockSiteControlBarPopupMenu()
 CExtControlBar::_CanDockToTabbedContainers()
 CExtControlBar::_CanDockLTRB()
Please note you can lock all the contro bars by using the following code:
CExtControlBar::g_bLockAllBars = true;
pMainFrame->RecalcLayout();
CExtControlBar::stat_RecalcBarMetrics( pMainFrame );
As for the Close button, there is no way to add it in the current implementation of the panel control bar when it is docked.