This is really a MS Windows question I think but I hope
maybe somebody here has run into it and has a solution...
I am converting an application from MS Access/VBA to
wxPython. The app requires inputting Japanese text into
a text box using the MS Input Method Editor (IME).
One types into the IME composition window which shows the
characters and lets one convert them to kanji before they are
sent to the application. In Access, if I change the focus away
from the text box before converting them to kanji, or type a
return to accept them as-is, the characters accumulated so
far are sent as-is to the app text box. This is good and what
I want.
In wxPython, this does not happen, instead the characters
remain in the composition window, and the text box remains
empty. I must always explicitly type a return (or convert to
kanji) to send the text to the app's text box. I want this to
also happen automatically on loss of focus the way it does in
Access.
I am guessing this is some IME function I need to call when
focus moves from the app's text box, but I have no idea what
it is. Any help? (I am not a Windows programmer and I find
their IME documentation impenetrable.) TIA!!
This is really a MS Windows question I think but I hope maybe somebody here has run into it and has a solution...
I am converting an application from MS Access/VBA to wxPython. The app requires inputting Japanese text into a text box using the MS Input Method Editor (IME).
One types into the IME composition window which shows the characters and lets one convert them to kanji before they are sent to the application. In Access, if I change the focus away from the text box before converting them to kanji, or type a return to accept them as-is, the characters accumulated so far are sent as-is to the app text box. This is good and what I want.
In wxPython, this does not happen, instead the characters remain in the composition window, and the text box remains empty. I must always explicitly type a return (or convert to kanji) to send the text to the app's text box. I want this to also happen automatically on loss of focus the way it does in Access.
I am guessing this is some IME function I need to call when focus moves from the app's text box, but I have no idea what it is. Any help? (I am not a Windows programmer and I find their IME documentation impenetrable.) TIA!!
Sorry, I don't know much about it either. Please enter a bug report about it with a category of "wxMSW Specific".
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Ok thanks, i'll do that, but I'm not sure it's really a bug. I have no
idea how it is supposed to work. I just thought other people have
written foreign language wxPython apps and probably had to deal
with IME issues, and so may have some advice.
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Friday, January 27, 2006 5:57 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Microsoft IME and wxPython
Stuart McGraw wrote:
> Hello All,
>
> This is really a MS Windows question I think but I hope
> maybe somebody here has run into it and has a solution...
>
> I am converting an application from MS Access/VBA to
> wxPython. The app requires inputting Japanese text into
> a text box using the MS Input Method Editor (IME).
>
> One types into the IME composition window which shows the
> characters and lets one convert them to kanji before they are
> sent to the application. In Access, if I change the focus away
> from the text box before converting them to kanji, or type a
> return to accept them as-is, the characters accumulated so
> far are sent as-is to the app text box. This is good and what
> I want.
>
> In wxPython, this does not happen, instead the characters
> remain in the composition window, and the text box remains
> empty. I must always explicitly type a return (or convert to
> kanji) to send the text to the app's text box. I want this to
> also happen automatically on loss of focus the way it does in
> Access.
>
> I am guessing this is some IME function I need to call when
> focus moves from the app's text box, but I have no idea what
> it is. Any help? (I am not a Windows programmer and I find
> their IME documentation impenetrable.) TIA!!
Sorry, I don't know much about it either. Please enter a bug report
about it with a category of "wxMSW Specific".
--
Microsoft is to Information Technology, as George Bush
is to International Affairs.