Page 1 of 1

Context menu, when language switch?

Posted: Sat Jan 13, 2018 8:26 pm
by malsehn
if i not declare a context menu,and i have a empty texteditor field with no function then the right mouse give me the context in os language .
german.

With functions the contextmenu is in english , why?

Re: Context menu, when language switch?

Posted: Sun Jan 14, 2018 7:01 am
by malsehn
I forgot: in Operatingsystem Windows

Re: Context menu, when language switch?

Posted: Mon Jan 15, 2018 6:42 pm
by airsoftsoftwair
What do you mean by "functions"? Of course, the context menu provided by the OS is in the system's language. If you define a custom context menu, it will use the language strings provided.

Re: Context menu, when language switch?

Posted: Mon Jan 15, 2018 9:25 pm
by malsehn
if you look in your RapaGui Example "Demo" there the part texteditor, you see contextmenu is in german.
In your example Rapagui script "texteditor" there is the contextmenu in english.

Re: Context menu, when language switch?

Posted: Wed Jan 17, 2018 7:25 pm
by airsoftsoftwair
This is because the TextEditor.hws example sets TextEditor.Styled to TRUE. Then you will get Richedit control instead of a standard edit control on Windows and wxWidgets uses a custom context menu for Richedit controls. I don't know why but I'm sure there's a very good reason :-)

Re: Context menu, when language switch?

Posted: Wed Jan 17, 2018 10:42 pm
by malsehn
That's exactly the reason with Texteditor.Styled "FALSE" Iin WIN OS the RM Contextmenu is in OS language , with "True" is this in english. But i love the Richedit controls, now i can show the Power of Speechrecognition.

looks great " Mark Texteditor.Styled Make that bold"