• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Canvas, keyPressed() and TextBox

 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I would like simulate a textbox in a Canvas to caugth user data.
I know that easy with MIDP(use of Texfied or TexBox).
I would like use Canvac to do it:with keyPressed() I can caugth numericals:0,1,2, 4 etc but I don't know how caugth charcters: a, b c, d,e, f etc..It's missed in the CANVAS API.
Thank you for your reply.
OULD
 
Jason Fox
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the following method to get the names of the keys pressed.
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thank you for your reply. It works. It's useful for me.
OULD
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic