Phone number editor in UIQ

Login to reply to this topic.
Tue, 2005-02-15 11:50
Joined: 2004-11-20
Forum posts: 67
Hi all,
I want a Edwin that accepts  just valid phone character,
just +,*,p,w, 0-9

In series 60 I defined this block in RSS, and It works fine:

RESOURCE EDWIN r_dialerapp_edwin_phonenumber
   {
   width = 100;
   lines = 1;
   maxlength = 20;
   numeric_keymap = EAknEditorStandardNumberModeKeymap;
   allowed_input_modes   = EAknEditorNumericInputMode;
   default_input_mode = EAknEditorNumericInputMode;
   flags = EAknEditorFlagDefault;
   }

but how about UIQ???
Where are they defined in UIQ???

Mon, 2006-10-09 07:22
Joined: 2006-09-04
Forum posts: 6
Re: Phone number editor in UIQ
i want the same info of how to use a phone number editor if its possible in UIQ...or do i have to use a rich text editor (using CEikRichTextEditor) only and make the use to painstakingly input a phone number through it...
Pleeeeeeeezzz sum1
Thu, 2006-10-26 12:45
Joined: 2005-03-14
Forum posts: 59
Re: Phone number editor in UIQ
To have edwin that has numeric input, sreate your own class based on edwin, and add:

TCoeInputCapabilities CInputTextEdwin::InputCapabilities() const
  {
  TCoeInputCapabilities myCapabilities(this->CEikEdwin::InputCapabilities());
  myCapabilities.SetCapabilities(TCoeInputCapabilities::EWesternNumericIntegerPositive|
                                 TCoeInputCapabilities::ENavigation);
  return myCapabilities;
  }


This will give you numerical input.
  • Login to reply to this topic.