常见对话框的UI镜像 [英] UI Mirroring for common dialogs

查看:104
本文介绍了常见对话框的UI镜像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我遇到系统对话框(例如文件打开/保存,文件夹浏览器)的UI镜像(对于阿拉伯语或希伯来语)问题.我已设置WS_EX_LAYOUTRTL样式,但仍无法正常工作.对话框上的某些控件会被镜像,而不是全部.我还需要做什么才能使其正常工作?

谢谢与问候,
Vaibhav D. Gade.

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.

推荐答案

还请尝试:
WS_EX_RIGHT
WS_EX_RTLREADING

您可能还必须调用:: EnumChildWindows()并更改子窗口的样式.对于按钮和复选框,BS_RIGHT | BS_LEFTTEXT;对于静态控件,SS_RIGHT:对于所有子窗口,WS_EX_RIGHT.

希望这会有所帮助,
巴勃罗.
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.


感谢您的回复.

几分钟前,我找到了以下解决方案:
如果父对话框具有WS_EX_LAYOUTRTL并且操作系统语言是阿拉伯语或任何其他从右到左的阅读语言,则文件打开/保存对话框或浏览文件夹对话框会自动得到镜像.

谢谢,
Vaibhav.
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.


这篇关于常见对话框的UI镜像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆