Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User hooopoe's Avatar
    Join Date
    Jan 2007
    Posts
    26
    The aim of setInitialInputMode("IS_LATIN_DIGITS") is transform the data entry of the TextBox for example to digits. Even the TextBox is TextField.ANY.
    So, sometimes setInitialInputMode("IS_LATIN_DIGITS") is not converting the data entry to digits , it leaves the mobile to its default status such as alphanumeric..so does anyone have any recommendation...

  2. #2
    Regular Contributor axs's Avatar
    Join Date
    Aug 2006
    Posts
    307
    IMHO setInitialInputMode(characterSubset) sets a hint, not a requirement as how the input mode should be used when the user initiates editing. If a subset is not supported by the platform, the default one will be used.

    Should you try the TextField.DECIMAL or TextField.NUMERIC with the mentioned character subset?

  3. #3
    Registered User hooopoe's Avatar
    Join Date
    Jan 2007
    Posts
    26
    you can not use "TextField.NUMERIC" in setInitialInputMode

  4. #4
    Regular Contributor axs's Avatar
    Join Date
    Aug 2006
    Posts
    307
    The constructor for TextBox is TextBox(String title, String text, int maxSize, int constraints), where the constraints integer might be the TextField.NUMERIC, TextField.DECIMAL, etc. Or simply use the setConstraints(int constraints) method to do the same things.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved