Get input candidate in wxTextCtrl from IME before commit

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
TextEdit
In need of some credit
In need of some credit
Posts: 8
Joined: Fri May 11, 2018 7:31 am

Get input candidate in wxTextCtrl from IME before commit

Post by TextEdit »

Hi everyone,

I would like to get the input string from wxTextCtrl while using an Input Method Editor (IME). But before the input string is committed by IME, wxTextCtrl::GetValue() only returns text that is already in the control. How can I do that? Attached image is what it looks like when some input in the IME is not committed yet.

Thanks!
Attachments
Uncommitted in IME
Uncommitted in IME
Screen Shot 2018-05-15 at 12.53.25 PM.png (14.54 KiB) Viewed 771 times
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Get input candidate in wxTextCtrl from IME before commit

Post by doublemax »

You'll need platform specific code for this (if it's possible at all), there is no wxWidgets support for this.
Use the source, Luke!
TextEdit
In need of some credit
In need of some credit
Posts: 8
Joined: Fri May 11, 2018 7:31 am

Re: Get input candidate in wxTextCtrl from IME before commit

Post by TextEdit »

Okay. I see. Thank you doublemax!
Post Reply