Skip to content

Commit dd37f21

Browse files
CFrankCFrank
authored andcommitted
fixes issue bruderstein#58 - set console layout to LTR
1 parent c735574 commit dd37f21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PythonScript/src/ConsoleDialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ void ConsoleDialog::createOutputWindow(HWND hParentWindow)
470470
LONG_PTR currentStyle = GetWindowLongPtr(m_scintilla, GWL_STYLE);
471471
SetWindowLongPtr(m_scintilla, GWL_STYLE, currentStyle | WS_TABSTOP);
472472

473+
LONG_PTR exstyles = GetWindowLongPtr(m_scintilla, GWL_EXSTYLE);
474+
if ((exstyles & WS_EX_LAYOUTRTL) == WS_EX_LAYOUTRTL)
475+
{
476+
SetWindowLongPtr(m_scintilla, GWL_EXSTYLE, exstyles & (~WS_EX_LAYOUTRTL));
477+
}
473478

474479
callScintilla(SCI_SETREADONLY, 1, 0);
475480

0 commit comments

Comments
 (0)