Discussion Board

Results 1 to 2 of 2

Thread: simple input?

  1. #1
    Registered User grewerizl's Avatar
    Join Date
    Jan 2011
    Posts
    1
    Hi,

    im looking for a way to get a simple input of 2 int numbers. what are some easy commands to read the pressed keys? everything i found is with textfield... but i just want to save 2 pressed keys in a int item... isnt there an easier way?

    like in java with scanner?

    thanks for your help

  2. #2
    Nokia Developer Champion njzk2's Avatar
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814
    if you use a Canvas, you can override keyPressed which gives you the code of the key that is pressed. (note that usually this is the ascii value of the key, which mean, on a standard phone keyboard, that the int value will be : key - '0'.)

Similar Threads

  1. Replies: 7
    Last Post: 2009-06-12, 09:14
  2. Simple text input field
    By erst in forum Symbian C++
    Replies: 15
    Last Post: 2007-04-03, 06:11
  3. Replies: 1
    Last Post: 2006-03-29, 11:23
  4. Replies: 2
    Last Post: 2006-01-31, 11:46
  5. pls help! sample code for a simple dialog with text input for 9210
    By edmundkkchan in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-06-21, 17:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved