How to get numeric input from User in Text Mode(NOT GUI)???

Login to reply to this topic.
Wed, 2006-04-12 09:49
Joined: 2006-04-08
Forum posts: 41
Hi All,
I am new to Symbian. I am using CConsoleBase class.
I want to develop simple menu driven interface in text mode(NOT in GUI) Like:

   1. New
   2. Open
   3. Exit
Enter Ur Choice:

N i want choiced input from user in the numeric form i.e 1 or 2 or 3.
Can any guy or gal suggest me how to do it???
Any advice is highly appreciated.
Plz do respond immediately.
Thanx & Regards,
Amit.

Wed, 2006-04-12 10:37
Joined: 2004-05-24
Forum posts: 982
Re: How to get numeric input from User in Text Mode(NOT GUI)???
CConsoleBase  class has a GetCh() method

pirosl

Wed, 2006-04-12 13:23
Joined: 2006-04-08
Forum posts: 41
Re: How to get numeric input from User in Text Mode(NOT GUI)???
Quote from: pirosl
CConsoleBase  class has a GetCh() method
Hi Again,
Thanx once again here.
Same question i will ask that will i be able to handle numeric keys through the return value type TKeyCode of Getch()Huh
If yes then How??
Regards,
Amit.
Wed, 2006-04-12 13:26
Joined: 2004-05-24
Forum posts: 982
Re: How to get numeric input from User in Text Mode(NOT GUI)???
Do you have the documentation from SDk instaled? If yes....you can check hot TKeyCode looks like. If no..please instal it.

pirosl

Wed, 2006-04-12 13:35
Joined: 2006-04-08
Forum posts: 41
Re: How to get numeric input from User in Text Mode(NOT GUI)???
Quote from: pirosl
Do you have the documentation from SDk instaled? If yes....you can check hot TKeyCode looks like. If no..please instal it.
I do have installed SDK.
I am bit confused whether these KeyCodes will be used to handle inputs from the keyboard or from the emulators keypad???
Wed, 2006-04-12 13:39
Joined: 2004-05-24
Forum posts: 982
Re: How to get numeric input from User in Text Mode(NOT GUI)???
I dont really understand your question.....but TKeyCode should act in the same way...it doesnt matter if you work in emulator or on the real phone

pirosl

Wed, 2006-04-12 14:04
Joined: 2006-04-08
Forum posts: 41
Re: How to get numeric input from User in Text Mode(NOT GUI)???
Quote from: pirosl
I dont really understand your question.....but TKeyCode should act in the same way...it doesnt matter if you work in emulator or on the real phone
I mean to say when u look at TKeyCodes then these keycodes seems to have code for so many keys which are present only on keybord not on keypad of emulator like ESC key, TAB key etc....that is why i am confused.
Amit.
  • Login to reply to this topic.