Right to Left Text in wxStyledTextCtrl, and Bidirectional, work fine on Windows and Linux, But completely not working on macOS.
I known, Bidirectional is still Experimental in wxStyledTextCtrl, but why simple right to left not working on macOS ?
Tested :
wxWidgets 3.1.1 Stable, and from Github (master)
Static Unicode Build.
Windows 7, 10
TDM GCC 5.1.0
RTL : OK
BIDI : OK
Linux Debian, Ubuntu, CentOS
GTK 2 and 3
GCC (latest version)
RTL : OK
BIDI : OK
macOS 10.12 Sierra
Apple LLVM Clang 8.0
RTL : NO
BIDI : NO
Code: Select all
... = new wxStyledTextCtrl(... wxWANTS_CHARS | wxTE_PROCESS_ENTER |
wxTE_PROCESS_TAB | wxBORDER_NONE | wxVERTICAL |
wxRIGHT | SCI_CHARRIGHT |
SCI_WORDRIGHTEND | SCI_CHARRIGHTEXTEND | SCI_WORDRIGHTENDEXTEND |
SCI_SETMARGINRIGHT | SCI_WORDRIGHT | SCI_WORDRIGHTEXTEND |
SCI_DELWORDRIGHT | SCI_DELWORDRIGHTEND | SCI_WORDPARTRIGHT |
SCI_WORDPARTRIGHTEXTEND );
SetLayoutDirection(wxLayout_RightToLeft);