How can I translate the context menu items of WinTabbedMdi?
I couldn't find an appropriate method or property to do this.
I have made a workaround:
private void ultraTabbedMdiManager1_InitializeContextMenu(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabContextMenuEventArgs e) { foreach (MenuItem mi in e.ContextMenu.MenuItems) { switch(mi.Text) { case "&Close": mi.Text = "Close"; break; case "New Hori&zontal Tab Group": mi.Text = "New Horizontal Tab Group"; break; case "New &Vertical Tab Group": mi.Text = "New Vertical Tab Group"; break; case "C&ancel": mi.Text = "Cancel"; break; case "Move to Ne&xt Tab Group": mi.Text = "Move to Next Tab Group"; break; case "Move to P&revious Tab Group": mi.Text = "Move to Previous Tab Group"; break; } } }
Anyone have another suggestion?
Thanks in advance
You can customize these assembly resource string. The following article explains how to do this: http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Win_Customizing_Assembly_Resource_Strings.html
The strings you would want to customize are:
That works for me. What is the ressource key for the tooltip of the Close (X) button right to the mdi tab pages?