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

Developer

Forums

Forums:

Hi
I am using a device with a qwerty keyboard. I wann sent the input mode for TextCtrl as numeric. But i am unble to set that. It is setting AEE_TM_NUMBERS OR AEE_TM_EXTENDED_KEYS. If i combine bothHere is the codelet

AEETextInputMode devMode = AEE_TM_RAPID;
AEETextInputModeInfo tmInfo;
ITEXTCTL_GetInputMode(pTC->m_pDeviceText, &tmInfo);
DBGPRINTF("### ITEXTCTL_GetInputMode::devMode=%x", tmInfo.tmMode);//GM: remove after Debug
//DBGPRINTF("###string=%S", tmInfo.tmMode);//GM: remove after Debug
if( mode == CTEXT_NUMBERS )
{
devMode = AEE_TM_NUMBERS /*| AEE_TM_EXTENDED_KEYS */;
DBGPRINTF("###new mode==::devMode=%x", AEE_TM_EXTENDED_KEYS); //GM: remove after Debug
}
else if( mode == CTEXT_LETTERS )
{
devMode = AEE_TM_LETTERS;
}
DBGPRINTF("### before::devMode=%x", devMode);//GM: remove after Debug
devMode = ITEXTCTL_SetInputMode( pTC->m_pDeviceText, devMode );

ITEXTCTL_GetInputMode(pTC->m_pDeviceText, &tmInfo);
DBGPRINTF("### SetInputMode::devMode=%x tmMode=%x", devMode, tmInfo.tmMode);//GM: remove after Debug

There is no way it is allowying to set the numeric mode with qwert mode.
Pleasea comment.

Thanks
GM

Bump----------------

Bump----------------

Looks like OEM/device implementation for QWERTY handsets is like that. On some handsets it is not allowing to set the numeric code, on others numeric mode can be set but you can enter anything (letters etc..).
Better design the application such that it restricts the entry in textctl to numeric or letter or symbol.

Looks like OEM/device implementation for QWERTY handsets is like that. On some handsets it is not allowing to set the numeric code, on others numeric mode can be set but you can enter anything (letters etc..).
Better design the application such that it restricts the entry in textctl to numeric or letter or symbol.