locked
Can we set input mode for WM smart phone, such as number mode? Thanks. RRS feed

  • Question

  • For WM smart phone can we set its input mode, such as abc or number?  the troubleshooting issue is that for HTC smartphone, when input numbers it will always need the support of "Alt" key, combined with "Alt" key input together, otherwise it won't work, although we have set it as number only style.  I have tried to use API SHSetImeMode, but it is not supported for smartphone.  

    Anyone who has any idea please let me know and thanks in advance. 
    Thursday, April 2, 2009 3:26 AM

Answers

All replies

  • Have you tried using
    InputModeEditor.SetInputMode(textBox1, InputMode.Numeric)

    Eg in http://msdn.microsoft.com/en-us/library/ms172542(VS.80).aspx

    Regards,
    Navin Narayan
    Thursday, April 2, 2009 3:43 AM
  • Thanks for your reply.

    InputModeEditor seems be the method of dot net platform, currently our implementation is based on WM smartphone and using pure C++ as programming language, so your suggestion method can't be found in smartphone dev SDK and then compiling error, anyway, many thanks to your help.. 
    Friday, April 3, 2009 5:15 AM
  • Have you looked at Edit_SetInputMode defined in winuserm.h

    Regards,
    Navin Narayan
    Friday, April 3, 2009 6:52 AM
  • Narayan:

    Thanks for your reply.  I have found expected API Edit_SetInputMode, but unfortuanately it doesn't work on this HTC device, function return value is FALSE. anyway thanks very much.
       
    JBool bRet = Edit_SetInputMode(m_hEditBox, EIM_NUMBERS)
    Friday, April 3, 2009 7:35 AM
  • Have you tried using SendMessage(hWndUser, EM_SETINPUTMODE, 0, EIM_NUMBERS); to the form/window in similar lines as in http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/f5e9a706-8e14-4412-a147-2f6b6dc75b75/

    Regards,
    Navin Narayan
    • Marked as answer by warrentang Wednesday, April 8, 2009 3:14 AM
    Friday, April 3, 2009 9:47 AM