WPCubed Product Support

IMEINPUT conditional compilation and Pen input on tablet

I tested AWoell's theory from the 2006 thread mentioned above about the eating of WM_IME_CHAR as maybe being wrong and tried re-enabling IMEIMPUT and adding inherited WndProc(Message); as below in TWPCustomRtfEdit.WndProc

This seems to allow for handwriting recognition to work as well, but not sure what it might break in regards to IME input.

   if Message.Msg = WM_IME_CHAR then
   begin
        inherited WndProc(Message);  // Test: added for handwriting recognition
         exit;
   end else

This change also allows for accented chars and emojis to be entered using the US keyboard method described here:

Special chars

#2 ✎ ♥ 0
1.9k Views 3 links 1 users read 2 min

Handwriting recognition using the Windows TabTip keyboard on tablets does not function when IMEINPUT conditional compilation switch is in effect. (as first mentioned for WPTools 5 back in 2006, 2006 thread). This is still the case with WPTools9. However, FYI, the same "fix" by turning off IMEINPUT causes a compilation error because the two routines in WPCTRMemo: TWPCustomRtfEdit.WMIMEComposition and TWPCustomRtfEdit.WMIMEEndComposition are not both conditionally compiled out (they are in the interface section but not in the implementation section)... easily remedied manually of course.

It would be helpful if handwriting recognition would work with IMEINPUT enabled. But if not possible, maybe make IMEINPUT a runtime option rather than a compile time option?

Does disabling IMEINPUT cause any issues other than not being able to use IME INPUT? IME input definition I don't use or need the emoji insertion capability which seems to be part of it.

#1 ♥ 0