Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 86
Registered: ‎09-01-2009
My Device: Not Specified
Accepted Solution

How can i disable Menu item

I created 2 menu items say save, open and i want disable the open menu item. Hoiw can i do this task?
Highlighted
Developer
Posts: 984
Registered: ‎02-10-2009
My Device: Not Specified

Re: How can i disable Menu item

You can put conditional code in your makemenu method to disable a menu.

Something like:

protected void makeMenu( Menu menu, int instance ) { menu.add(saveMenu); if(condition == true) { menu.add(openMenu); } }

 


Regards

Bikas