Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
How can I choose the tab order with UltraTabbedMdiManager
posted

Hi,

I have a TDI application using an UltraTabbedMdiManager, and I would like it to behave like Firefox, i.e. when you add a new tab, it opens at the end of the tab list, but when you click on a link in one of the open tabs, the new tab is placed just at the right of the "parent" one.

Regards.

Olivier FALCY.

Parents
No Data
Reply
  • 53790
    Verified Answer
    posted

    Hello Olivier,

    Maybe one possible way to achieve desired behavior could be if you are using Reposition method of your UltraTabMdiManager. For example:

     public static void CreateNewWindow(bool IsButtonPress)
    {
        int ActiveTabIndex;
        if(MyForm.ultraTabbedMdiManager1.ActiveTab != null)  ActiveTabIndex = MyForm.ultraTabbedMdiManager1.ActiveTab.Index;
        else ActiveTabIndex =0;

        i++;
        Form2 f = new Form2();
        f.MdiParent = MyForm;
        f.Text = "Form " + i.ToString();
        f.Show();

        if (IsButtonPress) MyForm.ultraTabbedMdiManager1.TabGroups[0].Tabs[MyForm.ultraTabbedMdiManager1.ActiveTab.Index].Reposition(MyForm.ultraTabbedMdiManager1.TabGroups[0].Tabs[ActiveTabIndex], Infragistics.Win.UltraWinTabbedMdi.MdiTabPosition.Next);
             
        int Width = MyForm.ultraTabbedMdiManager1.TabSettings.TabWidth * MyForm.ultraTabbedMdiManager1.TabGroups[0].Tabs.Count + 5;
        MyForm.ultraTabbedMdiManager1.CreationFilter = new CreatingTextUIElement(Width);
    }

    Please take a look at the attached sample and video file for more details. If you have any questions, do not hesitate to write me

     

    UltraTabMDIManagerTabOrderWithOpenTab.zip
Children