implement TrackwheelListener. The only function you need is trackwheelClick:
Code:
public boolean trackwheelClick(int status,int time) {
Field focus = getLeafFieldWithFocus();
now you can check on certain fields, like
Code:
if (focus=myButton) {
doSomething();
true;
}
else if (focus=myOtherButton){
doSomethingElse();
return true;
}
return false;
if you return true the click-event was consumed, if you return false you will get the standard menu. If you want your own menu you can just replace the 'return false' with your menu and return true.
hth,
simon