Bidi Right to Left Language in Firemonkey Mobile

帅比萌擦擦* 提交于 2019-12-01 01:40:14

问题


How can show any string in right to left languages such as Persian or Arabic in Android or iOS with FireMonkey?

I Use Embarcadero Rad Studio XE6 (Delphi) and when I put a TLabel or TEdit and set its text to "سلام" (Hello in Persian) everything is OK in Windows and Mac but in Mobile platform that is wrong display, in Android shows "م ا ل س" and in iOS does not show anything but space.

The problem still exists in Delphi XE7.


回答1:


As per LURD's suggestions.
Download and use D.P.F Delphi Android Native Components and/or D.P.F Delphi iOS Native Components.
That will fix the problem in XE7 and prior.
According to the documentation with the Delphi XE8 beta the problem is fixed there as well.




回答2:


In Delphi version XE Don't Support BiDi.

If You want use D.P.F Delphi Android Native Components.

You should in Forms use DPFlayuot Next Align in Client



来源:https://stackoverflow.com/questions/25666598/bidi-right-to-left-language-in-firemonkey-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!