×

Discussion Board

Results 1 to 5 of 5

Thread: numeric keypad?

  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    57

    numeric keypad?

    Hi

    How to deal with the numeric keypad in a canvas-based application? I want all the input features of text controls (like, switch between ABC/Abc/abc/123/T9, special chars input and stuff) without text controls.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: numeric keypad?

    Quote Originally Posted by nokia_e70 View Post
    How to deal with the numeric keypad in a canvas-based application? I want all the input features of text controls (like, switch between ABC/Abc/abc/123/T9, special chars input and stuff) without text controls.
    You want to write your own Front End Processor in python? Seriously?

    Try to use as much default components as possible. A simple "text input box" does sound so seductively easy, but it's full of special cases of special cases of special cases. After that comes the real special cases.

    Good luck.

    ...if you really want to give it a try, remember that Chinese font is a bit higher than latin based fonts. Screen orientation can change. In right-to-left language numbers still go left to right, at least in Hebrew. Zooming text size might effect textbox size, too. If text string is too long, there is sometimes ellipses at end. Sometimes text strings scroll like marquee inside your box. You have to decide whether your text box is fixed size (then what size in which screen resolutions) or dynamic (vertical and/or horizontal)...

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    57

    Re: numeric keypad?

    Quote Originally Posted by JOM View Post
    You want to write your own Front End Processor in python? Seriously?
    What's a Front End Processor (seriously) ? The only thing that comes to my mind is "if You write that sort of thing You can get ALL-TCB capabilities"

    If it handles the user's input on the keypad and the application sees the resulting text (instead of a sequences of repeated numbers), then I just want to use the default one. The question is: how do I ?

    I don't want any "text input boxes", I have my own interface with my own boxes, I just want the system to handle the keypad (and give me the letters).

    ...if you really want to give it a try, remember that Chinese font is a bit higher than latin based fonts.
    No, actually, I have an application for a specific language (and that is not chinese, neither hebrew ). Besides, I don't need ALL-TCB yet, so another time perhaps...

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: numeric keypad?

    Quote Originally Posted by nokia_e70 View Post
    What's a Front End Processor (seriously)?
    Sorry, just a quick link as short description:

    http://www.symbian.com/Developer/tec...iew.guide.html

    It means that if default input methods are not enough for you as-is, then you are able to develop your own on top of Symbian framework (using C++). The first and last time I had anything to do with it, it was ... not too nice Or maybe I can say an experiment to last for the lifetime

    Btw how come you get only numeric input? Isn't it user's responsibility to switch into "abc" mode? Maybe you could just take input as-is, process it and give feedback, like dialog "Wrong input! Use alphabets"? Keep it simple, allocate some responsibility to users, too?

    Cheers,

    --jouni

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    57

    Re: numeric keypad?

    Quote Originally Posted by JOM View Post
    Btw how come you get only numeric input?
    Now I'm kind-of aware that in order for the canvas to receive the letters from the numeric keypad it would have to implement MCoeFepAwareTextEditor (and it doesn't). Not sure what I'll make out of this...
    Last edited by nokia_e70; 2008-04-02 at 14:55.

Similar Threads

  1. Key codes of numeric keypad keys
    By dathom in forum Symbian
    Replies: 5
    Last Post: 2009-10-27, 23:02
  2. TKeyCode values for numeric keypad keys
    By gemilib in forum Symbian
    Replies: 7
    Last Post: 2007-10-24, 17:14
  3. Replies: 0
    Last Post: 2006-01-06, 09:21
  4. Translate alpha to numeric
    By Trev-H in forum Mobile Java General
    Replies: 2
    Last Post: 2005-10-07, 16:54
  5. P800 J2ME game. i'm in trouble because of keypad
    By shahzad73 in forum Mobile Java General
    Replies: 0
    Last Post: 2002-11-21, 03:22

Posting Permissions

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