- Define ITextCtl in the Forms struct so you can share it
- In the form creation rutine create the text control:
+ Create an instance ISHELL_CreateInstance(pMe->piShell, AEECLSID_TEXTCTL...
+ Set the rect of the text to (0,0,1,1) with ITEXTCTL_SetRect();
+ Set the input mode to Rapid Mode (AEE_TM_RAPID) with ITEXTCTL_SetInputMode();
+ Activate the control ITEXTCTL_SetActive()
- In the Form handle catch the EVT_KEY and send all key events (that you need) to your ITextCtl with ITEXTCTL_HandleEvent(..., evt,wParam,dwParam);
- At last get the text fo the ITextCtl with ITEXTCTL_GetText() and set the text of the Text Widget with the retrieved text.
- That's it. Don't forget to release the ITEXTCTL in the Forms delete procedure.
Remember that T9 is an OEM so it will no work on the emulator