DockingManager issues

I am using Essential studio 3.2.1.0 I am using the docking manager and have set my windows to float and tab upon each other. I create the control programatically and then add it to the docking manager. When I click the tab the control disapears. I can only think it is being docked onto the main form. And I am unable to make it visible again. Is this a version problem or is there a way I can only allow a control to float or tab upon other controls and not the main form?

Thanks

thanks

2 Replies

AJ Ajish Syncfusion Team July 31, 2007 11:54 PM UTC


Hi John,

I was unable to reproduce the issue. We tested this issue with the following sample,

Sample: http://websamples.syncfusion.com/samples/Tools.Windows/F65285/main.htm

Here is the video file on the steps that I followed in order to test this issue.

http://www.syncfusion.com/Support/user/uploads/Video_b49dcc03.zip

Kindly take a look at the sample and provide us with more details to reproduce the issue. This would help us investigate further on this issue.

Regards,
Ajish.


JO John August 1, 2007 04:01 PM UTC

Well I did figure out that once you double click on a tab it docks with the parent form. I figured out a way to prevent the control to be docked on the main form by using this code

private void dockingManager1_DragAllow(object sender, Syncfusion.Windows.Forms.Tools.DragAllowEventArgs arg)
{
DockHost dhost = arg.Control.Parent as DockHost;
DockHostController dhc = dhost.InternalController as DockHostController;
if(dhc.ParentController is DockTabController)
{
DockTabControl docktab = (dhc.ParentController as DockTabController).TabControl;
foreach(DockTabPage tabpage in docktab.TabPages)
{
if(this.dockingManager1.IsFloating(arg.Control))
{
if(!dhost.RectangleToScreen(dhost.TitleBar.CaptionRect).Contains(Cursor.Position))
{
arg.Cancel = true;
}
}
}
}

I can also prevent the caption bar double click by using float only. Is there a way to have the control that is tabbed open up in a seperate window when the tab is double clicked instead of redocking with the parent form?

Loader.
Up arrow icon