03-20-2009 01:58 PM
I am new to the BlackBerry development. I just want to know that whether it is possible to make menu and buttonfield disable and make then enable based on some condition by keeping them added. I know the alternative to remove it and add it based on condition but I want to make them enable and disable rather than adding and removing.
Please help me.
03-20-2009 02:11 PM
You can disable the menu by overriding makeMenu() but there is no way to toggle between enabling and disabling the Menu and Buttonfield. You have to add and remove on the basis of condition as you said.
Press the kudos button to thank the user who helped you.
If your problem was get solved then please mark the thread as "Accepted solution".
03-20-2009 08:55 PM
You have to invent it. We have our own custom button class with a disable() method.
This method sets a property which disables the click events and repaints the image with a 60% alpha value.