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.
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

Postby TextEdit » Tue May 15, 2018 7:58 pm

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
Screen Shot 2018-05-15 at 12.53.25 PM.png
Uncommitted in IME
Screen Shot 2018-05-15 at 12.53.25 PM.png (14.54 KiB) Viewed 140 times

User avatar
doublemax
Moderator
Moderator
Posts: 12681
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Get input candidate in wxTextCtrl from IME before commit

Postby doublemax » Tue May 15, 2018 8:12 pm

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

Postby TextEdit » Tue May 15, 2018 8:57 pm

Okay. I see. Thank you doublemax!


Return to “C++ Development”

Who is online

Users browsing this forum: No registered users and 17 guests