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
JKDESAI
Posts: 112
Registered: ‎05-29-2009
My Device: Not Specified
Accepted Solution

Conflict Button click & menu click

Hi

 

     In my application i hav put 2 buttons & 2 textfields on the screen. Now my problem is that when i am pressing the button (while button has the focus on it) it does both activities - the task define in the click event of that button & also open the menu.

 

     I want to disable the menu while clicking button. I want that if i press the button it should perform only the necessary task defined in the buttonfield event, Not shown the menu with it.

 

    Any body has some idea about about that?

Please use plain text.
Developer
macdan
Posts: 157
Registered: ‎05-10-2009
My Device: Not Specified

Re: Conflict Button click & menu click

Please try this when you create the button: 

ButtonField myButton= new ButtonField("My_Button", ButtonField.CONSUME_CLICK);

Please use plain text.