×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    307

    how to replace the "back" button with the menu?

    Dear all:
    I need your help!
    Symbian supports "Option" menu and "back" button,how to replace the default "back" button with the menu?
    Thanks in advance!
    Regards!
    Alan Yin

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144
    Hi

    You just need to define your own buttons and set them to be used. There you can assign any labels & commands to your softkeys.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    307

    thanks a lot,but...

    but how to define my button?and how to assign labels & commands to my softkeys?Please go into detail!
    Thanks a lot!
    Regards!
    Alan Yin

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144
    Hi

    I though that since you have well over 100 posts allready, you would also know how to use the search box, or SDK documentation to find information. anyway here's a post that says how to define softkey buttons:

    http://discussion.forum.nokia.com/fo...ight=%2ACBA%2A

    and to set it, check the Cba() function in your CAknView-derived class.

    yucca

  5. #5
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    307

    Dear yucca, I think that....

    Dear yucca:
    First thanks for your reply!
    but I think that perhaps you misread my intention.
    when user click the left "Option" button,a menu poped.
    I wanna when user click the right button,also a menu poped!
    how to associate the menu with the right button?
    Thanks and regards!
    Alan Yin

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144
    yep, it's monday, can't really think strait.. sorry about that.

    Anyway having two menues is not really how nokia would like to have it, might also confuse users, most often it's better to stick on the way everybody else does it (just one menu), so users would feel more secure while using your app.

    But, you could also define both softkeys with your own command, and in you command handler just set the menu on fly using:

    CEikonEnv::Static()->AppUiFactory()->MenuBar()->SetMenuTitleResourceId(R_MY_MENUBAR);

    Then you just need to call a function that starts displaying the menu right away, unfortunately, I can't remember where it was, but propably in somewhere UI functions.

    yucca

  7. #7
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    If I understood right what yinjialiang wanted, he should associate command id EAknSoftkeyOptions with both CBA buttons so the same menu would pop up using either button. But as already pointed out, it's a violation of S60 UI style.

    Lauri

  8. #8
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    307

    Dear Two,thanks a lot

    But just as laa-laa pointed out,it's a violation of S60 UI style,so I decided to give it up.
    But thanks at all!
    Regards!
    Alan Yin

  9. #9
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Bangalore,India.
    Posts
    63

    it is not possible to have 2 different menus.

    Hi All,

    I agree that having separate menus for 2 softkeys violates the
    Series60 UI style. But it is not possible either to have 2 separate
    menus for them.

    actually I have tried this. But all menu Items are getting added
    to the left softkey's menu. when I have associated
    'EAknSoftkeyOptions' to both softkeys, I am getting similar menus
    for both the keys.

    Then I found that we are actually mentioning a menubar like :
    menubar=r_myapp_menubar;

    and it is automatically getting linked to softkey with ID
    'EAknSoftkeyOptions' whether it is on the left or right.


    Regards,
    Sreenivasulu Y

  10. #10
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    307

    Thanks a lot

    Thanks for your reply
    Regards!
    Alan Yin

Posting Permissions

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