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
160
How to achieve a right-to-left layout of the Main-Menu Bar (UltraToolbarsManagerWorkspace)
posted

Hi,

we've got a problem concerning the right-to-left layout of the Main-Menu Bar.

we are using  the UltraToolbarsManagerWorkspace (Netadvantage Version 7.3)  in a CAB/SCSF Setup. We now want to switch the order of the main menu to a Right-To-Left order (for instance for arabic languages).

In a standard  .Net 2.0-Winform Application without your Netadvantage-Libraray, one would have to do the following:

1) Add a Menustrip-Main-Menu for instance and set the following Properties of the Main-Form:

            RightToLeft = RightToLeft.Yes;
            RightToLeftLayout = true;  

Additionally we switched the current culture:

2) Thread.CurrentThread.CurrentCulture = new CultureInfo("ar-SA");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ar-SA");

This works fine with the Menustrip-Main Menu.

We did the same for our application with the UltraToolbarsManagerWorkspace, but the main-menu is still displayed in a Left-To-Right Style. Is there a special instuction that has to be performed to achieve the Right-To-Left Layout of the Main menu ? We did not find a Property of the UltraToolbarsManagerWorkspace ( something like "RightToLeft" common to standard-controls). How can we achieve it ? 

 Greetings, 

 Thomas. U.

Parents
No Data
Reply
  • 44743
    posted

    The toolbars manager does not support right to left. You can submit a feature request for this here: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.

    You can work around this for main menu bars and toolbars with Settings.FillEntireRow to True by adding a LabelTool before all other tools. Give the label tool no caption and set its InstanceProps.Spring property to True. This will push all tools to the right side of the toolbar. However, you will need to put the tools in the toolbar in the reverse order.

Children
No Data