Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Right-to-Left Collapse All
Subject Author Date
Sadjad Fouladi Jun 20, 2006 - 1:00 AM

If someone sets the system default language to RTL languages, Everything (Menubar, ControlBar, etc.) goes RTL. How I can prevent Control Bar, Menu Bar, etc. to go RTL?

Sorry for my poor english

Technical Support Jun 20, 2006 - 7:55 AM

By default Prof-UIS automatically detects whether the language layout of the OS is Right-To-Left or Left-To-Right and correspondingly changes the control layout. But you can override the default implementation. The current language layout is controlled by the resource manager and there is a SetLangLayout() method in the CExtResourceManager class that allows you to set the desired language layout.

To reset the language layout to default:

g_ResourceManager->SetLangLayout( ); 
To make the language layout LTR:
g_ResourceManager->SetLangLayout( LAYOUT_LTR );
To make the language layout RTL:
g_ResourceManager->SetLangLayout( LAYOUT_RTL );