Can't set the T9 input mode in a Text Widget. | developer.brewmp.com Can't set the T9 input mode in a Text Widget. | developer.brewmp.com

Developer

Can't set the T9 input mode in a Text Widget.

I have an application with ITextCtl on a device and I can set the T9 with no problems. I have another app made with UI widgets and I'm using the Text Widget. But I can't set the T9 using it. I know that I shall use the IWIDGET_SetInputMode with the AEE_TMODE_RAPID but no success :(

Any one has a clue? or has been able to do it?

Thanks

OZie

Thanks to MahatmaManic
http://brewforums.qualcomm.com/showthread.php?p=53441#post53441
I figured out how to do it.
- 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 :)
Cheers,
OZie

Thanks to MahatmaManic
http://brewforums.qualcomm.com/showthread.php?p=53441#post53441
I figured out how to do it.
- 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 :)
Cheers,
OZie

You have mentioned that You have already implemented an application with a text control accepting in T9 mode. can you please provide a snippet of your code?
Because when i am trying on the device and also on the emulator the text box control is not accepting the T9 mode, i.e.
ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_RAPID);
the return value is still coming out as 3.!!!

You have mentioned that You have already implemented an application with a text control accepting in T9 mode. can you please provide a snippet of your code?
Because when i am trying on the device and also on the emulator the text box control is not accepting the T9 mode, i.e.
ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_RAPID);
the return value is still coming out as 3.!!!

The T9 (or the predictive mode) is not implemented/provided by BREW. It is usually implemented by the OEM. OEM's integrate the appropriate predictive engine (like T9, Zi or UNID) with the BREW code & provide the T9 support.
I assume that you're having the just the normal BREW simulator. If you're working with an OEM, then you can try to get the predictive mode enabled simulator. If you cannot do so, u can fairly assume that the predictive mode would be provided in your target device & write code for the same.
-empeegee

The T9 (or the predictive mode) is not implemented/provided by BREW. It is usually implemented by the OEM. OEM's integrate the appropriate predictive engine (like T9, Zi or UNID) with the BREW code & provide the T9 support.
I assume that you're having the just the normal BREW simulator. If you're working with an OEM, then you can try to get the predictive mode enabled simulator. If you cannot do so, u can fairly assume that the predictive mode would be provided in your target device & write code for the same.
-empeegee