×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    54

    command button problem with s60 phones

    Hi i have problem with my command buttons on a full canvas class. the problem is that when i click on a command button, a sub menu apears which highlights the command button name and gives me the option to press ok or cancel (see link)

    http://img291.imageshack.us/my.php?image=lookoc8.jpg

    What i want it to do instead is that has soon has the user presses the command button, the action in which corresponds to that command button executes straight away instead of a user having to select and click the ok button again..

    So has soon as i press the left command button, a menu pops up.. at the moment it doesnt and seems to be a problem with nokia phones in general has i tested it out on a 6680 and a 6300

  2. #2
    Regular Contributor
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    66

    Re: command button problem with s60 phones

    hi Jonney,

    That is how midp implements command listening on fullcanvas mode.
    If you want to: as soon has the user presses the command button, the action in which corresponds to that command button executes straight away instead of a user having to select and click the ok button again -> then do not use commands. You should just use Canvas.keyPressed(int keyCode). Then you will be able to execute whatever you want, with any key on the phone you want.

    Note: You can only listen to right and left softkeys in FullCanvas mode, which you are already doing. =)

    Cheers,
    Jackson

Similar Threads

  1. InputStream.skip() problem on S60 handsets
    By psycohk in forum Mobile Java General
    Replies: 3
    Last Post: 2007-11-16, 08:41
  2. Nokia, do you listen to your customers? Problems of your new phones
    By djprofessork in forum General Development Questions
    Replies: 3
    Last Post: 2007-09-24, 15:15
  3. S60 3rd MR1 porting, BAFL 4, resource problem?
    By danielos1 in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2007-03-19, 15:10
  4. Replies: 2
    Last Post: 2006-05-02, 07:19
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

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