DialogBox: Switch Alphanumeric->numeric

Login to reply to this topic.
Thu, 2006-05-18 14:45
Joined: 2006-05-09
Forum posts: 114
hi
i use a dialog box of type CaknTextQuerydialog.
i use it to make the user type a phone number (i didn't use the number dialog because it takes out the first zeros).
So is there a way to make numeric keyboard as the default configuration for this dialog box?
thanks a lot for your answers.
cheers

Fri, 2006-05-19 09:47
Joined: 2003-10-21
Forum posts: 40
Re: DialogBox: Switch Alphanumeric->numeric
Hi seacabo,

If I understand you correctly, you want the user to enter number and special characters liek *, # and so on. If I'm correct, you can use this dialog resource:

Code:
RESOURCE DIALOG r_my_dialog
   {
   flags = EGeneralQueryFlags;
   buttons = R_AVKON_SOFTKEYS_OK_CANCEL;

   items =
      {
      DLG_LINE
         {
         type = EAknCtQuery;
         id = EQueryDlgCId;
         control = AVKON_DATA_QUERY
            {
            layout = EPhoneLayout;
            control =
               EDWIN
                  {
                  width = 100; // change according to your needs
                  lines = 1; // // change according to your needs
                  maxlength = 105; // change according to your needs
                  };
            };
         }
      };
   }

hope that helps,
Imzadi
  • Login to reply to this topic.