×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    154

    How to use PHONE_NUMBER_EDITOR_FORMAT

    Hi ,
    I have created a dialog resource in which i want to use PHONE_NUMBER_EDITOR_FORMAT control. I am using the following resource definition for it

    RESOURCE DIALOG r_addrbook_dialog
    {
    flags=EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | EEikDialogFlagFillAppClientRect | EEikDialogFlagCbaButtons | EEikDialogFlagWait;
    buttons=R_AVKON_SOFTKEYS_YES_NO;
    items=
    {
    DLG_LINE
    {
    id=EAddrBookDlgPhoneEdwin;
    type=EAknPhoneNumberEditor;
    control= PHONE_NUMBER_EDITOR_FORMAT {top=100;left=20;bottom=120;right=100;lines=1;bottomBaselineOffset=0;baselineSeparation=0;font=0;};
    }
    };
    }

    I have derived my dialog class from CEikDialog and usinf ExecuteLD to display the dialog.

    But whenever i go to display this dialog the progrm gets terminated.

  2. #2
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    154
    Sorry the resource file definition was like this :

    RESOURCE DIALOG r_addrbook_dialog
    {
    flags=EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | EEikDialogFlagFillAppClientRect |
    EEikDialogFlagCbaButtons | EEikDialogFlagWait;
    buttons=R_AVKON_SOFTKEYS_YES_NO;
    items=
    {
    DLG_LINE
    {
    id=EAddrBookDlgPhoneEdwin;
    type=EAknPhoneNumberEditor;
    control= PHONE_NUMBER_EDITOR {maxLines=1;};
    }

    };
    }

    It gives exception when i launch the dialog.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Location
    Moscow
    Posts
    16
    Phone number editor is not available in Series 60. So it does not work.

  4. #4
    Registered User
    Join Date
    Apr 2004
    Location
    Moscow
    Posts
    16
    following dialog works well:

    RESOURCE DIALOG r_dialog_phonenumber_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtQuery;
    id = EGeneralQuery;
    control = AVKON_DATA_QUERY
    {
    layout = EPhoneLayout;
    label = "Enter number";
    control = EDWIN
    {
    flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    maxlength = 20;
    lines = 1;
    };
    };
    }
    };
    }

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

Posting Permissions

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