×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113

    Number Control reacts to NaviKey in incorrect way (incorrect for me)

    I am creating Form for numeric input using NUMBER_CONTROL as follows:
    Code:
    RESOURCE FORM r_east_north_form
        {
        flags = EEikFormUseDoubleSpacedFormat | EEikFormEditModeOnly;
        items =
            {
            DLG_LINE
                {
                type = EEikCtNumberEditor;
                prompt = qtn_enter_east_text;
                id = EOrbFormEastControl;
                itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
                control = NUMBER_EDITOR
                    {				
    				min = INT_MIN;
    				max = INT_MAX;
                    };
                tooltip = qtn_aknexform_hint_text_number;
                },
            DLG_LINE
    ...
    Form works ok. However, when I select NUMBER_CONTROL its contents also gets selected and when I press Left-Right, control's value decreases-increases by 1.

    My app should work with big different numbers and I want behavior similar to Contacts phone number editor. Left-Right buttons should move cursor allowing user to delete or insert digit at the desired position

    How can I do this?

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143
    just use an Edwin and put it into the numeric mode.

    yucca

  3. #3
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    Thanx

    I tried
    Code:
    control = EDWIN
                    {
    		allowed_input_modes = EAknEditorNumericInputMode;				
    		default_input_mode = EAknEditorNumericInputMode;
                    };
    It works and works quite close to what I need.
    However, it allows to put "#" and "*" symbols.
    Can I somehow allow digits only?

  4. #4
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    And I also need to limit maximal and minimal values..
    General Edwin doesn't seem to support this

Posting Permissions

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