| Reply | « Previous Thread | Next Thread » |
|
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. |
|
Quote:
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)... |
|
Quote:
![]() 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). Quote:
). Besides, I don't need ALL-TCB yet, so another time perhaps... ![]() |
|
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 |
|
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 15:55.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Key codes of numeric keypad keys | dathom | General Symbian C++ | 5 | 2009-10-28 00:02 |
| TKeyCode values for numeric keypad keys | gemilib | General Symbian C++ | 7 | 2007-10-24 18:14 |
| How 2 read Text Msg. Style Alpha Keys Using a Cellphone Numeric Keypad | fimjox | Mobile Java General | 0 | 2006-01-06 10:21 |
| Translate alpha to numeric | Trev-H | Mobile Java General | 2 | 2005-10-07 17:54 |
| P800 J2ME game. i'm in trouble because of keypad | shahzad73 | Mobile Java General | 0 | 2002-11-21 04:22 |