×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2003
    Posts
    112

    how to create a input text field that input phone number?

    hi, did anyone know how to create a input text field that input phone number? the current i have is to input a number, but the input text field that i need is to send the SMS to other country also, so have to insert the symbol like '+', any idea? please help.

    the following is the form that i using :

    RESOURCE DIALOG r_aknexform_text_field_dialog
    {
    flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
    EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder |
    EEikDialogFlagCbaButtons;
    buttons = R_AVKON_SOFTKEYS_OK_BACK;
    form = r_aknexform_text_field_form;
    }

    RESOURCE FORM r_aknexform_text_field_form
    {
    flags=EEikFormEditModeOnly;
    items =
    {
    DLG_LINE
    {
    type = EEikCtNumberEditor;
    prompt = "To";
    id = EAknExFormDlgCtrlIdNumber01;
    itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
    control = NUMBER_EDITOR
    {
    min = 0;
    max = 9999999999;
    };
    },

    DLG_LINE
    {
    type = EEikCtEdwin;
    prompt = "Msg";
    id = EAknExFormDlgCtrlIdEdwin02;
    itemflags=EEikDlgItemTakesEnterKey| EEikDlgItemOfferAllHotKeys;
    control = EDWIN
    {
    flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    width = AKNEXFORM_EDWIN_WIDTH;
    lines = AKNEXFORM_EDWIN_LINES;
    maxlength = 256;
    // added to limit expanding in forms.
    // If you want full screen use 6 here
    max_view_height_in_lines = 6;
    // if you have the line above, you must have this.
    // It is calculable from LAF
    base_line_delta = 21;
    };
    }
    };
    }


    thanks.

  2. #2
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Jakarta, Indonesia
    Posts
    53
    use type=EAknCtQuery

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    4

    Re: how to create a input text field that input phone number?

    hi,

    How can I access the text from editor (EDWIN)?
    Any views?
    Sample code, if any, will be very useful.

    Thanks,
    Prasad.

Posting Permissions

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