Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC++
Hi,
 
I have a problem of UI mirroring (For Arabic or Hebrew languages) with system dialogs such as file open/save, browser for folder. I have set WS_EX_LAYOUTRTL style but still its not working. Some controls on the dialog get mirrored, not all. What else I have to do to get it working?
 
Thanks & Regards,
Vaibhav D. Gade.
Posted 30-Aug-12 22:13pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try also:
WS_EX_RIGHT
WS_EX_RTLREADING
 
You may also have to call ::EnumChildWindows() and change styles of child windows. For buttons and checboxes, BS_RIGHT | BS_LEFTTEXT; for static controls, SS_RIGHT: for all child windows, WS_EX_RIGHT.
 
Hope this helps,
Pablo.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Thanks your response.
 
Few minutes ago, I have found a solution as following:
If parent dialog is having WS_EX_LAYOUTRTL and operating system language is arablic or any other right to left reading language, then file open/save dialog or browse for folder dialog automatically gets mirrored.
 
Thanks,
Vaibhav.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 400
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 264
3 BillWoodruff 245
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 2 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100