×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113

    How to open Commands menu from an application?

    I am developing a FullCanvas game.
    I would like it respond to SoftKey_1 press by showing menu very similar to normal Canvas menu (like you can see in Snake Ex game).

    I came to an idea of switching to a normal Canvas, painting it like main FullCanvas and then showing menu.

    However, user have already pressed SK_1 before screens switching. I don't want him to press it one more time to actually show the menu. Is there a way to request showing menu from a program?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393
    Draw your own softkeys on the fullcanvas or just capture the softkeys in the keypressed method when using canvas.

    public void keyPressed(int keyCode)
    {
    // any softkey key-press exits
    if ((keyCode == KEY_SOFTKEY1) || (keyCode == KEY_SOFTKEY2) ||
    (keyCode == KEY_SOFTKEY3))
    {
    parent.exitRequested();
    }
    }


    [N]/Forum Nokia

  3. #3
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    nmittal, I am doing so. Capturing SKs if of no problem.
    After capturing it on FullCanvas, I switch to another normal Canvas AND NOW I should show menu.
    User has already pressed SK, I don't want him to press it one more time.

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393
    Snake Ex on S60 is a Symbian application.

    [N]/Forum Nokia

  5. #5
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    nmittal, thank you for attention to this topic

    Yes, I know that Snake Ex is a Symbian app. I explained all the stuff just to tell why do I need manual menu showing.

    The question is rather local: Is there a way to request showing Commands menu?

    If there is, then I will make my game menus similar to Snake's. Of course not same, but similar looking

Posting Permissions

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