SetLayoutDirection Doesn't Work On Mac

On Windows with wx 3.0.2 SetLayoutDirection works as expected in htmlWindow. SetLayoutDirection(2) will allow me to display RTL texts. However, with the same version on Mac it does not work. It is always the default LTR. Plus GetLayoutDirection always returns 0 even after SetLayoutDirection(2) is supposedly set.

Was this feature missed on the Mac build? Is there a fix or workaround?

Thanks,

TIm

IIRC, it’s been that way for a long time, which is why I support Arabic on Windows but not Mac in my program.

I also never had any luck mixing directions, for example showing Arabic text in one RichTextCtrl and showing the English translation in another RichTextCrtl in the same application. The text itself was okay, but punctuation and formatting got very, very squirrelly.

David

···

On Nov 12, 2016 8:24 AM, “tsmorton” tim@preservedwords.com wrote:

On Windows with wx 3.0.2 SetLayoutDirection works as expected in htmlWindow. SetLayoutDirection(2) will allow me to display RTL texts. However, with the same version on Mac it does not work. It is always the default LTR. Plus GetLayoutDirection always returns 0 even after SetLayoutDirection(2) is supposedly set.

Was this feature missed on the Mac build? Is there a fix or workaround?

Thanks,

TIm

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

I was afraid of that. I need to display Hebrew text and cannot do it on the Mac. I wonder does Phoenix still have this limitation?

Tim

···

On Sunday, November 13, 2016 at 11:06:26 PM UTC-5, David Woods wrote:

IIRC, it’s been that way for a long time, which is why I support Arabic on Windows but not Mac in my program.

I also never had any luck mixing directions, for example showing Arabic text in one RichTextCtrl and showing the English translation in another RichTextCrtl in the same application. The text itself was okay, but punctuation and formatting got very, very squirrelly.

David

On Nov 12, 2016 8:24 AM, “tsmorton” t...@preservedwords.com wrote:

On Windows with wx 3.0.2 SetLayoutDirection works as expected in htmlWindow. SetLayoutDirection(2) will allow me to display RTL texts. However, with the same version on Mac it does not work. It is always the default LTR. Plus GetLayoutDirection always returns 0 even after SetLayoutDirection(2) is supposedly set.

Was this feature missed on the Mac build? Is there a fix or workaround?

Thanks,

TIm

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.