Hello Claudia,
Thanks again. I highly appreciate your time and goodwill.
But from what I understand, creating a window with WS_EX_LAYOUTRTL should be prefered and npp
uses it already for a couple of windows.
Indeed.
This is how NPP changes the editor text direction:
void ScintillaEditView::changeTextDirection(bool isRTL)
{
long exStyle = ::GetWindowLongPtr(_hSelf, GWL_EXSTYLE);
exStyle = isRTL ? exStyle | WS_EX_LAYOUTRTL : exStyle&(~WS_EX_LAYOUTRTL);
::SetWindowLongPtr(_hSelf, GWL_EXSTYLE, exStyle);
}
I have managed to flip the Status Bar entire layout with WS_EX_LAYOUTRTL etc.; changing only parts of an element seems to be more tricky.
Best regards.