I would like to use a DockingManager within an MDIClient form to allow the user to customize the layout of controls on that form similar to the WindowFill demo (i.e., no floating windows, but flexible docking, pinning and tabbed groups.
I would also like to use the OneNoteStyle tab renderer. Now I know I can assign that object to the TabStyle property of a TabControlAdv. However, I don''t see how to get to the tab control owned by the DockingManager. This is a TabControlAdv, I hope?
ADAdministrator Syncfusion Team March 8, 2004 06:21 PM
The DockTabControl is derived from the TabControlAdv control and hence the tabs can be displayed in OneNoteRenderer TabStyle. You could do this as shown in the code below :
Syncfusion.Windows.Forms.Tools.DockHost dhost = this.panel3.Parent as Syncfusion.Windows.Forms.Tools.DockHost;
Syncfusion.Windows.Forms.Tools.DockHostController dhc = dhost.InternalController as Syncfusion.Windows.Forms.Tools.DockHostController;
if(dhc.ParentController is Syncfusion.Windows.Forms.Tools.DockTabController)
Syncfusion.Windows.Forms.Tools.DockTabControl docktab = (dhc.ParentController as Syncfusion.Windows.Forms.Tools.DockTabController).TabControl;
docktab.TabStyle = typeof( Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer);
Please refer to the sample attached which illustrates the same. Let me know if you need further assistance.
SCScottApril 11, 2004 07:53 AM
I have been evaluating your tools and require more flexibility in formating docking windows tabs.
After reading your post above I have implemented the following code in VB.Net:
''Setup custom tabs for docking windows
Dim dhost As Syncfusion.Windows.Forms.Tools.DockHost
dhost = Me.pnlParents.Parent
Dim dhc As Syncfusion.Windows.Forms.Tools.DockHostController
dhc = dhost.InternalController
Dim dtc As Syncfusion.Windows.Forms.Tools.DockTabController
dtc = dhc.ParentController
Dim docktab As Syncfusion.Windows.Forms.Tools.DockTabControl
docktab = dtc.TabControl
Dim dts As Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer
docktab.TabStyle = dts
'' End code
However I receive the following error:
''Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer'' cannot be converted to ''System.Type''.
Please excuse my ignorance if I should know how to deal with this issue but I''m new to the .Net world!
ADAdministrator Syncfusion Team April 12, 2004 05:30 AM
The OneNoteStyleRender TabStyle value is available in our v2.0 releases only. So if you are using the earlier versions of Essential Suite you will not be able to use this. Please let me know the version of Essential Suite that you are using. We appreciate your interest in Syncfusion products.
SCScottApril 13, 2004 12:31 AM
Thanks for the reply.
I''m actually using your evaluation version of Essential Tools 22.214.171.124
Should this version have that attribute included?
ADAdministrator Syncfusion Team April 13, 2004 06:33 AM
OneNoteStyleRender TabStyle feature should be available in v126.96.36.199 eval version. I have attached a VB.Net_version of my earlier sample here. Please try this on your system and let me know how if you need further assistance. We appreciate your interest in Syncfusion products.
SCScottApril 14, 2004 02:22 AM
Thanks for the sample.
I had a syntax error in my VB code. Yours worked a treat.
My compliments on your support.
ADAdministrator Syncfusion Team April 14, 2004 06:00 AM
Thanks for the update. We are glad that this problem is resolved. Please let me know if you need any other information. Thanks for considering Syncfusion products.