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
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:
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
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:
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.
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.
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.