Text ctrl with T9 input mode (Urgent) | developer.brewmp.com Text ctrl with T9 input mode (Urgent) | developer.brewmp.com

Developer

Text ctrl with T9 input mode (Urgent)

Forums:

Hi All

I have created a text control and am trying to change its input mode with the API "ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_RAPID);
and ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_T9);"

However the return value is still coming as 3 i.e normal characters.

Could anyone please tell me the reason for this at the earliest.
Note: I am developing the application on 3.1.2 and ported the application on the MotoV3CRazr 3.1.2

Thanks in Advance

Maybe your device BREW layer uses AEE_TM_EZTEXT instead. You could try that, too.

Maybe your device BREW layer uses AEE_TM_EZTEXT instead. You could try that, too.

i tried using AEE_TM_EZTEXT, its not working!!! The trouble is, even after we have given
ITEXTCTL_SetProperties(pMe->m_pTextControl1, TP_RAPID_MODE) and
ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_EZTEXT), the return value remains 3. Even if the T9 application is physically not working in the simulator, at least it should change the the value associated!!!
can u suggest an alternative!!!

i tried using AEE_TM_EZTEXT, its not working!!! The trouble is, even after we have given
ITEXTCTL_SetProperties(pMe->m_pTextControl1, TP_RAPID_MODE) and
ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_EZTEXT), the return value remains 3. Even if the T9 application is physically not working in the simulator, at least it should change the the value associated!!!
can u suggest an alternative!!!

Don't worry much about emulator. Try MOD file with all three types of predictibe text input, and see what happens on your device. Most of the time, one of them just triggers text input to work as you wanted.

Don't worry much about emulator. Try MOD file with all three types of predictibe text input, and see what happens on your device. Most of the time, one of them just triggers text input to work as you wanted.

Thanks for your patience... i really appreciate it... but i tried porting the application to the phone... its still not taking T9 entry even with AEE_TM_EZTEXT!!!
i hope there isnt any other API other than the one mentioned above.
for your convenience i am enclosing my code snippet!!!
void ShowTextBoxes1(TextInputTest* pMe)
{
AEETextInputMode inpMode = 0;
AEETextInputModeInfo InpModeInfo={0};
uint32 x;
pMe->m_Text1 = (AECHAR *)MALLOC(20 * sizeof(AECHAR));
ITEXTCTL_SetActive(pMe->m_pTextControl1, FALSE);
ITEXTCTL_SetRect(pMe->m_pTextControl1, &pMe->m_TextRect1);
ITEXTCTL_SetProperties(pMe->m_pTextControl1, TP_RAPID_MODE);
x = ITEXTCTL_GetProperties(pMe->m_pTextControl1);
ITEXTCTL_SetMaxSize(pMe->m_pTextControl1, 20);
ITEXTCTL_SetActive(pMe->m_pTextControl1, TRUE);
inpMode=ITEXTCTL_GetInputMode(pMe->m_pTextControl1,&InpModeInfo);
DBGPRINTF("The inpMode is %d",inpMode);
DBGPRINTF("The inpModeInfo is %d and %S",InpModeInfo.tmMode,InpModeInfo.modeString);
inpMode=ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_EZTEXT);
inpMode=ITEXTCTL_GetInputMode(pMe->m_pTextControl1,&InpModeInfo);
DBGPRINTF("###After changing to rapid###");
DBGPRINTF("The inpMode is %d",inpMode);
DBGPRINTF("The inpModeInfo is %d and %S",InpModeInfo.tmMode,InpModeInfo.modeString);
if(inpMode != AEE_TM_EZTEXT)// Check if ITEXTCTL_SetInputMode is SUCCESS
{
DBGPRINTF("####SetInputMode NOT success");
}

i dont understand whats wrong with this???

Thanks for your patience... i really appreciate it... but i tried porting the application to the phone... its still not taking T9 entry even with AEE_TM_EZTEXT!!!
i hope there isnt any other API other than the one mentioned above.
for your convenience i am enclosing my code snippet!!!
void ShowTextBoxes1(TextInputTest* pMe)
{
AEETextInputMode inpMode = 0;
AEETextInputModeInfo InpModeInfo={0};
uint32 x;
pMe->m_Text1 = (AECHAR *)MALLOC(20 * sizeof(AECHAR));
ITEXTCTL_SetActive(pMe->m_pTextControl1, FALSE);
ITEXTCTL_SetRect(pMe->m_pTextControl1, &pMe->m_TextRect1);
ITEXTCTL_SetProperties(pMe->m_pTextControl1, TP_RAPID_MODE);
x = ITEXTCTL_GetProperties(pMe->m_pTextControl1);
ITEXTCTL_SetMaxSize(pMe->m_pTextControl1, 20);
ITEXTCTL_SetActive(pMe->m_pTextControl1, TRUE);
inpMode=ITEXTCTL_GetInputMode(pMe->m_pTextControl1,&InpModeInfo);
DBGPRINTF("The inpMode is %d",inpMode);
DBGPRINTF("The inpModeInfo is %d and %S",InpModeInfo.tmMode,InpModeInfo.modeString);
inpMode=ITEXTCTL_SetInputMode(pMe->m_pTextControl1, AEE_TM_EZTEXT);
inpMode=ITEXTCTL_GetInputMode(pMe->m_pTextControl1,&InpModeInfo);
DBGPRINTF("###After changing to rapid###");
DBGPRINTF("The inpMode is %d",inpMode);
DBGPRINTF("The inpModeInfo is %d and %S",InpModeInfo.tmMode,InpModeInfo.modeString);
if(inpMode != AEE_TM_EZTEXT)// Check if ITEXTCTL_SetInputMode is SUCCESS
{
DBGPRINTF("####SetInputMode NOT success");
}

i dont understand whats wrong with this???

After SetProperties() ITEXTCTL_SetProperties(pMe->m_pTextControl1, TP_RAPID_MODE); use ITEXTCTL_SetInputMode() with each of the tree optional modes individually: AEE_TM_EZTEXT,
AEE_TM_RAPID,
AEE_TM_T9One of them usually works. Try typing into the control, for each of those SetInputModes. Don't worry about the above test cases. Check the behavior on the device. You may get lucky.

After SetProperties() ITEXTCTL_SetProperties(pMe->m_pTextControl1, TP_RAPID_MODE); use ITEXTCTL_SetInputMode() with each of the tree optional modes individually: AEE_TM_EZTEXT,
AEE_TM_RAPID,
AEE_TM_T9One of them usually works. Try typing into the control, for each of those SetInputModes. Don't worry about the above test cases. Check the behavior on the device. You may get lucky.

hi
i tried with all the three individually. but its not working :( .....
should i also try with AEE_TM_ENGLISH_UK_R, AEE_TM_ENGLISH_US_R!!!!
but really i dont think these would work given that the three used before had much more probability of working!!!

hi
i tried with all the three individually. but its not working :( .....
should i also try with AEE_TM_ENGLISH_UK_R, AEE_TM_ENGLISH_US_R!!!!
but really i dont think these would work given that the three used before had much more probability of working!!!

Use the * key to switch the text control into rapid mode (RAZRs use iTap, not T9), then call ITEXTCTL_GetInputMode() to get the mode.
-Erik

Use the * key to switch the text control into rapid mode (RAZRs use iTap, not T9), then call ITEXTCTL_GetInputMode() to get the mode.
-Erik