×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    39

    How can I use both soft buttons?

    If i do like this:

    (some code here of course)

    nextCommand = new Command("Next", Command.SCREEN,1);
    showCommand = new Command("Show", Command.SCREEN,1);
    addCommand(nextCommand);
    addCommand(showCommand);

    ..the left soft button is labled "Options" (under which Next & Show is accesible) and the right button isn't connected to any function. I would like to use both buttons!! How can I do this?

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    39

    RE: How can I use both soft buttons?

    I forgot to say that I'm developing for 6310i.

    /Bjarne Johannessen

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    71

    RE: How can I use both soft buttons?

    have you tried assigning a different priority to the Commands?

    it is implementation dependant on how this value is interpreted, but I would guess nokias implementation assigns all Cmds with the same value to the same soft button; so giving a different value to the priority should place the lower priority command onto the second softbutton.

    rob,

  4. #4
    Registered User
    Join Date
    Mar 2003
    Location
    UK
    Posts
    35

    RE: How can I use both soft buttons?

    Do you have this problem when running on the 6310i?

    There was a problem with the Nokia emulator beta v0.2 - it would hide most commands under Options even if you declared them as OK or BACK commands. The Nokia emulator beta v0.3 is much better at placing the commands where they would appear on the actual phones, but perhaps it still might be exhibiting some odd behaviour.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    39

    RE: How can I use both soft buttons?

    Hello again!

    I'm actually using the beta 0.3! I tried some combinations of SCREEN, STOP, OK etc and I found out that by using STOP for showCommand the problem was solved Does .STOP require any special functionality or add functionality to my showCommand - I don't know, but it seems to work fine! My guess is that STOP, OK, SCREEN etc sets the priority level for the actual command, and the priority argument in "new Command()" only is used if the phone has to show multiples of the same command type (STOP, BACK etc).

    Well, thank you guys for your good replies!

    /Bjarne Johannessen

Posting Permissions

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