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.

(cherry picked from commit d8a90b4606)
This commit is contained in:
Václav Slavík
2016-03-28 17:39:26 +02:00
parent 92d9101b3d
commit 34c54237fc
2 changed files with 6 additions and 0 deletions

View File

@@ -222,6 +222,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

@@ -222,6 +222,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;
}