DialogBox: Switch Alphanumeric->numeric
| Thu, 2006-05-18 14:45 | |
|
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 |
|






Forum posts: 40
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:
  {
  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