I was able to test this by creating some sample text in
Microsoft Word, and saving it in Unicode encoding. In
my application, I open the file, read the encoded text,
and display it correctly in the text control.
Now, the other part of what I need to do is display what
I am typing in Thai. How do I programatically switch
keyboard layouts in wxWidgets? Or is the approach to
get every keypress in the text control and somehow translate
it to Thai then redisplay it? What is the correct way
to do this?
I know that I can change the active keyboard by clicking on
the "EN" in the system tray and selecting "TH"...but is there
another way to do this within a program?
Thanks in advance.
JB> How do I programatically switch keyboard layouts in wxWidgets?
Normally you don't, the keyboard layout should be selected by the user.
It can be very unnerving if you switch layout behind his back.
In any case, wx doesn't have any functions to do this, you should look in
MSDN docs to see how to do it under Windows. As for other OS I have no
idea.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/