×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    26

    setInitialInputMode("IS_LATIN_DIGITS")

    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
    Join Date
    Aug 2006
    Posts
    307

    Re: setInitialInputMode("IS_LATIN_DIGITS")

    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
    Join Date
    Jan 2007
    Posts
    26

    Re: setInitialInputMode("IS_LATIN_DIGITS")

    you can not use "TextField.NUMERIC" in setInitialInputMode

  4. #4
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: setInitialInputMode("IS_LATIN_DIGITS")

    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
  •