- Home
- Forum
- General Discussion
- Tabbed windows
Tabbed windows
I have an issue:
I have 2 types of windows in my application: Browser types and Editor types. In the application the browser type windows appear on the left hand side as tabbed windows and the editor type windows appear as tabbed windows on the right hand side (see screenshot1). Whenever a window is opened, it opens up as a floating window after which it is classified and docked as a tab either on the right hand side or left hand side depending on the type. I am calculating the sizes while docking for the first time. Whats happening is if I open a browser window first and then an editor window the windows get docked correctly as shown in screenshot1; but when I open another browser type window the editor window gets resized to the one shown in screenshot2.
I am using the following method to dock for the first time:
if ((typeof(TrackView) == type) || (typeof(DealView) == type) || (typeof(DTView) == type))
{
width = (int)hostForm.Width * 3 / 4;
dm.DockControl(control, hostForm, DockingStyle.Right, width);
}
else if ((typeof(DealBrowserView) == type) || (typeof(TrackBrowserView) == type))
{
width = (int)hostForm.Width * 1 / 4;
dm.DockControl(control, hostForm, DockingStyle.Left, width);
}
I am using the following method to open any new windows:
dm.DockControl(control, parentControl, DockingStyle.Tabbed, parentControl.Width);
Here the parentcontrol will be a control of the same type as control but not equal to it.
Is there something that I am doing wrong.
Regards,
Nitin Mehra.
I have 2 types of windows in my application: Browser types and Editor types. In the application the browser type windows appear on the left hand side as tabbed windows and the editor type windows appear as tabbed windows on the right hand side (see screenshot1). Whenever a window is opened, it opens up as a floating window after which it is classified and docked as a tab either on the right hand side or left hand side depending on the type. I am calculating the sizes while docking for the first time. Whats happening is if I open a browser window first and then an editor window the windows get docked correctly as shown in screenshot1; but when I open another browser type window the editor window gets resized to the one shown in screenshot2.
I am using the following method to dock for the first time:
if ((typeof(TrackView) == type) || (typeof(DealView) == type) || (typeof(DTView) == type))
{
width = (int)hostForm.Width * 3 / 4;
dm.DockControl(control, hostForm, DockingStyle.Right, width);
}
else if ((typeof(DealBrowserView) == type) || (typeof(TrackBrowserView) == type))
{
width = (int)hostForm.Width * 1 / 4;
dm.DockControl(control, hostForm, DockingStyle.Left, width);
}
I am using the following method to open any new windows:
dm.DockControl(control, parentControl, DockingStyle.Tabbed, parentControl.Width);
Here the parentcontrol will be a control of the same type as control but not equal to it.
Is there something that I am doing wrong.
Regards,
Nitin Mehra.
SIGN IN To post a reply.
5 Replies
JS
Jeba S
Syncfusion Team
July 25, 2007 11:31 AM UTC
Hi nitin,
Sorry for the delay in responding.
Thank you for your details.
Could you please let me know whether the application structure you specified is followed in the below sample link? If not, please provide me more information about the sample that would help us to find out the cause of the issue.
Here is the sample:
http://websamples.syncfusion.com/samples/Tools.Windows/F63936/main.htm
Please provide me the screenshot of the issues you faced.
Thank you for using Syncfusion Products.
Best Regards,
Jeba.
Sorry for the delay in responding.
Thank you for your details.
Could you please let me know whether the application structure you specified is followed in the below sample link? If not, please provide me more information about the sample that would help us to find out the cause of the issue.
Here is the sample:
http://websamples.syncfusion.com/samples/Tools.Windows/F63936/main.htm
Please provide me the screenshot of the issues you faced.
Thank you for using Syncfusion Products.
Best Regards,
Jeba.
NM
nitin mehra
July 30, 2007 04:21 PM UTC
I am sorry I forgot to add the screenshots earlier. Please have a look at the attached screenshots.
Thanks alot,
Regards,
Nitin mehra.
screenshots28.zip
Thanks alot,
Regards,
Nitin mehra.
screenshots28.zip
JS
Jeba S
Syncfusion Team
August 6, 2007 12:56 PM UTC
Hi nitin,
Sorry for the delay in response.
Thank you for your screen shots.
You can avoid the space using the DockToFill property .
Please refer this sample which illustrates the above:
http://websamples.syncfusion.com/samples/Grid.Windows/F63936Two/main.htm
Kindly let us know if you need any further assistance.
Thank you for your interest in Syncfusion Products.
Best Regards,
Jeba.
Sorry for the delay in response.
Thank you for your screen shots.
You can avoid the space using the DockToFill property .
this.dockingManager1.DockToFill = true;
Please refer this sample which illustrates the above:
http://websamples.syncfusion.com/samples/Grid.Windows/F63936Two/main.htm
Kindly let us know if you need any further assistance.
Thank you for your interest in Syncfusion Products.
Best Regards,
Jeba.
NM
nitin mehra
August 8, 2007 03:25 PM UTC
But when i look at the documentation it states that:
The DockToFill option should not be set when the host form is an MDIContainer or if it contains an instance of the DockingClientPanel control
I think the control that I am using is an MDI Container.
regards,
Nitin Mehra.
The DockToFill option should not be set when the host form is an MDIContainer or if it contains an instance of the DockingClientPanel control
I think the control that I am using is an MDI Container.
regards,
Nitin Mehra.
NM
nitin mehra
August 8, 2007 03:44 PM UTC
But as you suggested It worked.
Thanks a ton
regards,
Nitin Mehra.
Thanks a ton
regards,
Nitin Mehra.
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
NM nitin mehra
- Jul 11, 2007 06:54 PM UTC
- Aug 8, 2007 03:44 PM UTC