03-03-2009 08:33 AM
Hi,
How do I disable menu(s) in blackberry/rim by programatically?
Please help me in this regard
Thanks
Solved! Go to Solution.
03-03-2009 08:39 AM
03-03-2009 08:39 AM
This KB Article tells you how to remove Default close menu.
If you are looking for something else, please provide more information about your problem.
03-03-2009 12:11 PM
Hi,
There is one more solution for disabling menu's
Use FullScreen intead of MainScreen in your code and do not Write this line in the constructor of the class which is extendingFullScreen "super(DEFAULT_MENU | DEFAULT_CLOSE);"
OR
If you are using MainScreen then you can create an object of Menu like
objMenu = new Menu();
and then you can call deleteItem(int position) function on objMenu to delete item in menu you can also call deleteAll() function.
Please let me know if this solved your problem or not.
Regards,
Rajat Gupta.
__________________________________________________
If your issue solved, please resolve this thread. Set "Solution" mark on the post which contains the answer to your question. Thanks. Please If I successfully help you with an issue, thank you for clicking "kudos" in my post
03-04-2009 03:06 AM
Thanks to all for your replies.
Actually I want to disable or enable the menus. I have requirement like paging. User navigates the data by Next or Previous menus. If no data found by clicking Next or previous menus then these menus will be disable and if data are present then these menus are enable.
Please let me know it is possible or not?
Regards
Sohail
03-04-2009 03:20 AM
03-04-2009 03:33 AM
Hi,
Yes it possible just put conditions in your code in makeMenu(Menu menu,int instance) method like
if(data){
Add <NextMenu Button>
Add <Previous Button>
...........
}else{
Do not add any thing
}
Please le me know if this solved your problem or not.
Regards,
Rajat Gupta.
03-11-2009 05:44 AM
Thanks a lot to all of you. Proble is resolved.
Best Regards
03-11-2009 06:56 AM
03-12-2009 02:16 AM
Hi,
If your problem was solved.Please mark thread as resolved and also mention how your problem was solved so that in future, people can directly use that solution.