Don't mirror wxStyleTextCtrl under RTL locales

Not onlu has Scintilla no support for RTL languages, it is rendered into
a mirrored DC on Windows and so guaranteed unreadable and unsable. Fix
it by explicitly setting the window's layout direction to LTR.
This commit is contained in:
Václav Slavík
2016-03-28 17:39:26 +02:00
parent 16f111d007
commit d8a90b4606
2 changed files with 6 additions and 0 deletions

View File

@@ -224,6 +224,9 @@ bool wxStyledTextCtrl::Create(wxWindow *parent,
// Make sure it can take the focus
SetCanFocus(true);
// STC doesn't support RTL languages at all
SetLayoutDirection(wxLayout_LeftToRight);
return true;
}

View File

@@ -224,6 +224,9 @@ bool wxStyledTextCtrl::Create(wxWindow *parent,
// Make sure it can take the focus
SetCanFocus(true);
// STC doesn't support RTL languages at all
SetLayoutDirection(wxLayout_LeftToRight);
return true;
}