×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    136

    Constants from the TextField class

    Constants from the TextField class are used to specify the type of input required.
    It shows nothing if I write characters if I set the constraint as TextField.DECIMAL.
    But no error occur whatever I write ( for example just 123 ) if I set the constraint as TextField. EMAILADDR or TextField. URL????

    I am not clear with SENSITIVE and NON_PREDICTIVE.
    If we choose SENSITIVE, does it mean that the input will not be stored?
    If we don’t choose SENSITIVE, the input will be stored in the system?

    And regarding with NON_PREDICTIVE, does it mean that the system will not predict our input? For example, if I have logged in this site once as komomo, then at the second time when I try to log in, after I type the character ‘k’ , the system automatically shows komomo. If we choose NON_PREDICTIVE, the system will not show like that????
    Is that right?
    The emulator can predict like that?????

    And although I choose INITIAL_CAPS_WORD, the words I typed were not changed to capital letter. Similar problem with INITIAL_CAPS_SENTENCE. What is the purpose of using them?

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Constants from the TextField class

    The input hints don't necessarily impose any validation on the field. They are a hint to the implementation as to what kind of data you want, so that it can provide the user with appropriate help. For example, if you specify DECIMAL, the device can default to number entry rather than alpha. If you specify EMAILADDR, it can default predictive text off, and offer the user the option of selecting an email address from the address book.

    Use these by choosing the options that best describe what you want the user to enter, but remember that how each device uses this information will be different. Some devices will provide the user with useful help on inputting the right information; some devices might ignore it altogether. Remember that UI components are implemented according to each device's native user interface, and is subject to its particular limitations.

    Graham.

Similar Threads

  1. missing constants
    By melager in forum Symbian C++
    Replies: 1
    Last Post: 2009-02-18, 09:06
  2. Replies: 1
    Last Post: 2008-08-28, 21:25
  3. drive specific constants
    By dinesh547 in forum Symbian C++
    Replies: 11
    Last Post: 2008-05-23, 11:19
  4. HAL constants
    By csm in forum Symbian C++
    Replies: 1
    Last Post: 2006-07-21, 15:15
  5. constants in sacls.h
    By d00mo in forum Symbian C++
    Replies: 2
    Last Post: 2006-05-22, 11:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •