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.
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
Have you been able to resolve your issue ? Did you have a time to take a look at the attached sample.
Please let me know if you have any questions.
Regards
Thanks for the feedback. If you need any additional assistance, do not hesitate to write us
Hello Georgi,
I've just tried your method and it works fine.
Thanks a lot.
Olivier.