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:
@@ -224,6 +224,9 @@ bool wxStyledTextCtrl::Create(wxWindow *parent,
|
|||||||
// Make sure it can take the focus
|
// Make sure it can take the focus
|
||||||
SetCanFocus(true);
|
SetCanFocus(true);
|
||||||
|
|
||||||
|
// STC doesn't support RTL languages at all
|
||||||
|
SetLayoutDirection(wxLayout_LeftToRight);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -224,6 +224,9 @@ bool wxStyledTextCtrl::Create(wxWindow *parent,
|
|||||||
// Make sure it can take the focus
|
// Make sure it can take the focus
|
||||||
SetCanFocus(true);
|
SetCanFocus(true);
|
||||||
|
|
||||||
|
// STC doesn't support RTL languages at all
|
||||||
|
SetLayoutDirection(wxLayout_LeftToRight);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user