Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
855
When Does the Navigator Group Option Become Enabled?
posted

Hi.  I'm working on an application that was first developed using version 2006.2 of the Win Dock Manager component.  Now, we've upgraded to the 2010.2 release.  Something has changed and I cannot figure out what it is.

The Dock Manager is allowing the user to drop a docked control onto an empty area of the screen.  The Navigator is enabling the center area (group area) when there's nothing under it.  When the control is dropped, the control disappears from view.  Here's a screen shot of what the navigator looks like:

Can anyone please tell me how to set up the Dock Manager so controls cannot be dropped like this?  I only want the group area of the navigator to be enabled when the drop target is another docked control.

Thanks.

  • 5118
    Verified Answer
    posted

    You can get these indicators by setting the DockManager's DragWindowStyle property to LayeredWindowWithIndicators.  The middle should become active if you have an MDI application/TabbedMDIManager and it will convert the DockableControlPane into an MDI Child.  Also it will become enabled if you try to dock into a DockArea that allows a ChildPaneStyle of TabGroup. 

    If you do not want it at all set the DefaultPaneSettings.AllowDockAsTab to false. For an MDI app set the DefaultPaneSettings.CanDisplayAsMdiChild to false.  Those two settings should cover the scenarios you described above.  You can also set the properties on specific panes if you like instead of the default for all panes.

    I just reread your post... you want the CanDisplayAsMdiChild setting.