We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DockingManager issues

Thread ID:

Created:

Updated:

Platform:

Replies:

65285 Jul 25,2007 03:01 PM Aug 1,2007 12:01 PM Windows Forms 2
loading
Tags: Tools
John
Asked On July 25, 2007 03:01 PM

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

Ajish [Syncfusion]
Replied On July 31, 2007 07:54 PM


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.

John
Replied On August 1, 2007 12:01 PM

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?

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;