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.

Docking Manager Tab Order

Thread ID:

Created:

Updated:

Platform:

Replies:

36502 Nov 1,2005 12:28 PM May 3,2006 10:52 AM Windows Forms 6
loading
Tags: Tools
Derek Stafford
Asked On November 1, 2005 12:28 PM

I seem unable to influence the order of the tabs in my Docking Manager. I have two docked controls; Analysis Explorer and Runs Explorer (see attached screenshot). I want Analysis Explorer to be the first tab (leftmost). If I try and change it in the Designer it has no effect. Is there a way in code that I can set this order after InitializeComponent?

DockedTabs.zip

Vijayanand S [Syncfusion]
Replied On November 2, 2005 01:20 AM

Hi Derek, You could change the DockTabPostion by using the SetTabPosition method in the Docking Manager. There was a bug in this method, I had logged a bug report Inconsistency behaviour in the SetTabPosition method regarding this issue and it has been resolved. If you are interested in recieving a patch build, please create a Direct Trac incident to get the patch version and also mention this forum link. As a workaround, you could use the ActivateControl method immediately before the SetTabPosition method. Please take a look at this attached test sample which illustrates this workaround and let me know if you have any questions. Thanks for using Syncfusion Products. Regards, Vijay Test Sample

Derek Stafford
Replied On November 2, 2005 11:32 AM

My code now looks like this but its made no difference InitializeComponent(); // Workaround to set the position to 0 this.dockingManager1.ActivateControl(this.pnlAnalysisExplorer); this.dockingManager1.SetTabPosition(this.pnlAnalysisExplorer, 0);

Derek Stafford
Replied On November 2, 2005 11:40 AM

>My code now looks like this but its made no difference > >InitializeComponent(); > >// Workaround to set the position to 0 >this.dockingManager1.ActivateControl(this.pnlAnalysisExplorer); >this.dockingManager1.SetTabPosition(this.pnlAnalysisExplorer, 0); > > When running the above code I started receiving an error that stated that pnlAnalysisExplorer was not enabled for docking. This is despite the following code appearing in InitializeComponent() // // pnlAnalysisExplorer // this.pnlAnalysisExplorer.Controls.Add(this.pnlAnalysisExplorerTree); this.pnlAnalysisExplorer.Controls.Add(this.pnlAnalysisExplorerToolbar); this.dockingManager1.SetEnableDocking(this.pnlAnalysisExplorer, true); this.pnlAnalysisExplorer.Location = new System.Drawing.Point(1, 24); this.pnlAnalysisExplorer.Name = "pnlAnalysisExplorer"; this.pnlAnalysisExplorer.Size = new System.Drawing.Size(246, 620); this.pnlAnalysisExplorer.TabIndex = 7; So what I''ve done is change my code to look like the following. Everything now works as required but I don''t understand why. InitializeComponent(); // Workaround to set the tvwAnalysisExplorer to position 0 this.dockingManager1.SetEnableDocking(this.pnlAnalysisExplorer, true); this.dockingManager1.ActivateControl(this.pnlAnalysisExplorer); this.dockingManager1.SetTabPosition(this.pnlAnalysisExplorer, 0);

Vijayanand S [Syncfusion]
Replied On November 2, 2005 11:27 PM

Hi Derek, Docking Manager loads the docking windows properties after the Form Load event. If you want to set or get the values for docking windows during application startup, you could use the statement within the NewDockStateEndLoad event. This event will trigger at the end of the Form Load event. Please take a look at this attached sample and let me know if this meets your requirements. We appreciate your interest in Syncfusion Products. Regards, Vijay Modified Test Sample

Brian Corley
Replied On May 3, 2006 07:58 AM

I am trying to do the same thing, but it is not in the init section and I can not get things to work properly either. I have the situation where I am making the tab visible/invisible. When the tab becomes visible I want it to be the left most tab. It is always the right most tab no matter what index I use when calling: dockingManager.SetDockVisibility(lstErrors, true); dockingManager.ActivateControl(lstErrors); dockingManager.SetTabPosition(lstErrors,"index");

Vijayanand S [Syncfusion]
Replied On May 3, 2006 10:52 AM

Hi Brian, I am afraid, I was not able to reproduce your problem in our v4.1. Could you please let me know you version number which you are using currently? If possible, please modify the attached sample to reproduce the issue. It will help us to solve this issue accurately. Thanks, Vijay Test Sample

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.

;