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