Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

A bizarre thing happened when I was trying to switch input mode in a textctl.
On KYOCERA's kz850 and SANYO's SCP580, the AEE_TM_FIRST_OEM + 2 maps to chinese input.
When I used ITEXTCTL_SetInputMode( pme->m_pName, AEE_TM_FIRST_OEM + 2); to set input mode to chinese, it returned value 3 which is AEE_TM_LETTERS. But the actual input mode has been switched to chinese pinyin. So the next time I ran ITEXTCTL_GetInputMode(), it returns 3 which didn't tell the actual mode.

Is this a bug?

if(ITEXTCTL_GetInputMode(pme->m_pName, &pmInfo)==AEE_TM_FIRST_OEM + 2)//pmInfo->tmMode
ITEXTCTL_SetInputMode( pme->m_pName, AEE_TM_LETTERS);
else
ITEXTCTL_SetInputMode( pme->m_pName, AEE_TM_FIRST_OEM + 2);
ITEXTCTL_SetActive(pme->m_pName, TRUE);//