ryancheung / ImeSharp

C# wrapper for Windows IME APIs
MIT License
71 stars 12 forks source link

[Usecase] [Help] How to start textcomposition ? #13

Closed sagarkardani closed 2 years ago

sagarkardani commented 2 years ago

Thanks for this great wrapper.

I am totally new to IME and all TSF related APIs. I was able to start the Demo Project successfully. On textinput InputMethod.TextInputCallback is fired. Now I want to start my custom text composition based on my input and want to show candidates in window like below. image

Can you tell me how to start text composition and show window ?

Regards, Sagar

ryancheung commented 2 years ago

You probrably need set showOSImeWindow to true on InputMethod.Initialize() method call here: https://github.com/ryancheung/ImeSharp/blob/00e40e4e3348ee9204c93b4e4f1b2a3cce33275a/ImeSharp.Demo/Form1.cs#L66

sagarkardani commented 2 years ago

@ryancheung Thanks for reply.

That I did already. But where to start my custom text composition and how to trigger InputMethod.TextCompositionCallback ? Can you give me any reference link ?