A few RTL questions
Frank Niessink
frank at niessink.com
Sat Dec 8 12:48:40 PST 2007
Hi Vadim,
2007/12/8, Vadim Zeitlin <vadim at wxwidgets.org>:
> Looking at the code, this probably happens because the bitmap is drawn
> into wxMemoryDC which uses the global writing direction. Unfortunately I
> don't know what would be the best way to fix it and whether we should use
> RTL for wxMemoryDC at all...
OK, I'll just flip the bitmap back programmatically when the language
is RTL then.
> Have you tried using wxTE_RICH2? If this doesn't help neither I'm afraid
> this would just mean that rich text controls don't implement this menu at
> all.
Yes, I did try wx.TE_RICH2 as well. That gives me the same behaviour
as wx.TE_RICH.
> Yes, but even simpler is to use wxApp::GetLayoutDirection().
Of course, why didn't I think of that.
Thanks, Frank
More information about the wx-users
mailing list