U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » IME improved support
IME improved support [message #58133] Sat, 26 February 2022 18:41 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
U++ now supports IME (text input for 'complicated' langauges like chinesse) more correcly, on all 3 platforms:

index.php?t=getfile&id=6574&private=0

For the support, there are some new methods in Ctrl interface:

virtual Point GetPreedit();

Should return the position of top left point of insertion point (or Null if widget does not need IME).

virtual Font GetPreeditFont();

Should return the font to be used for displaying partial input (it looks good if it matches the current font of text).

static void CancelPreedit();

Client code can call to "abort" the input - e.g. when user moves the cursor by the mouse click.

void CancelMyPreedit() { if(HasFocus()) CancelPreedit(); }

Similar, with focus test...
  • Attachment: ime_mac.jpg
    (Size: 137.26KB, Downloaded 707 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: String::Make - new way how to create a small string fast
Next Topic: FileSel::FileCtrl
Goto Forum:
  


Current Time: Sun Jun 21 13:52:07 GMT+2 2026

Total time taken to generate the page: 0.00558 seconds