Discussion Board
-
How to use PHONE_NUMBER_EDITOR_FORMAT
2004-03-10, 06:14
#1
Regular Contributor
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.
-
Regular Contributor
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.
-
Registered User
Phone number editor is not available in Series 60. So it does not work.
-
Registered User
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;
};
};
}
};
}
-
Nokia Developer Expert
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules