×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    92

    Question Get key events without canvas

    Hello All,

    I'm developing an application using the natives components like Form and List.
    But, if the key 5 is pressed for 3 seconds, I have to do an action.
    I know that by using Canvas I have the methods keyPressed and keyReleased.
    But my question is, is it possible to get key events when using a Form or a List?

    Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Get key events without canvas

    No. You must use Canvas if you want key events.

    Graham.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Get key events without canvas

    Quote Originally Posted by fabiocberg View Post
    But my question is, is it possible to get key events when using a Form or a List?

    Thanks in advance.
    If you can use the Third Party GUI designing library like the LWUIT, then you can get the key events and the controls will be inside the respective handlers, like the keypressed(), keyReleased() and keyRepeated(). However as Grahm using the J2ME native API this is not possible.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Canvas and key events
    By daturach in forum Python
    Replies: 6
    Last Post: 2009-08-16, 13:38
  2. detecting key presses in midlets (without using canvas)
    By jbaisden in forum Mobile Java General
    Replies: 1
    Last Post: 2007-11-30, 06:48
  3. foreground without key events.
    By Shaikuny in forum Symbian C++
    Replies: 3
    Last Post: 2004-10-29, 16:29
  4. Get rid of canvas title without Nokia code
    By Danack in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-06-26, 18:29

Posting Permissions

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