Hello,
Is it possible to set an RTL layout direction a PopUp wxMenu before calling the PopupMenu() method.
It seems not working by calling SetLayoutDirection(wxLayout_RightToLeft);
TIA.
[wxMSW] How to set an RTL layout direction a PopUp wxMenu? Topic is solved
Re: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
Hi,
Which locale is set on your system? And are you overriding it by calling wxLocale methods?
Also - do you have a translations file to get the text from?
Thank you.
Which locale is set on your system? And are you overriding it by calling wxLocale methods?
Also - do you have a translations file to get the text from?
Thank you.
Re: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
The local in my system is English US, and I have overridden it by the following method:
What I meant is the popup menu should be mirrored in application level like in the attached screenshots:
Original Popup menu: What it should be in RTL: except the text Of-course.
Code: Select all
wxLocale local(wxLANGUAGE_ARABIC_ALGERIA, wxLOCALE_DONT_LOAD_DEFAULT);
Original Popup menu: What it should be in RTL: except the text Of-course.
Re: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
Hi,
I presume you are on Windows and using 3.1.5?
Can you run the internat sample and see fi the menu is displaying correctly?
Thank you.
I presume you are on Windows and using 3.1.5?
Can you run the internat sample and see fi the menu is displaying correctly?
Thank you.
Re: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
I just tested the internat sample.
All the menu-bar menus have the correct RTL layout except when a popup menu that is fired via PopupMenu() is stayed in an LTR layout.
It seems impossible even the native Right-click context-menu on an edit control in the "Test locale availability..." menu, you can try it yourself.
So, I guess the PopupMenu() will follow the system locale no matter what.
What do you think?
Thank you.
All the menu-bar menus have the correct RTL layout except when a popup menu that is fired via PopupMenu() is stayed in an LTR layout.
It seems impossible even the native Right-click context-menu on an edit control in the "Test locale availability..." menu, you can try it yourself.
So, I guess the PopupMenu() will follow the system locale no matter what.
What do you think?
Thank you.
Re: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
Hi,
Yes, I think it will follow the system locale.
Thank you.
Yes, I think it will follow the system locale.
Thank you.