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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
Raime910
Posts: 16
Registered: ‎09-04-2008

Close Menu On Button Click

Hi all! I'm new to this Java development and I have a silly question to ask. Whenever I press a ButtonField this "Close" menu at the bottom of my BB Pearl pops up and had to press "Back" every after button click to get rid of it. Is it possible to disable it? Thanks!

 

- Ryan

Please use plain text.
Developer
richard_puckett
Posts: 191
Registered: ‎04-03-2008

Re: Close Menu On Button Click

You'll want it to "consume" the click.  For example:

 

ButtonField fooButton = new ButtonField("Foo", ButtonField.CONSUME_CLICK);

add(fooButton);

Please use plain text.
New Developer
Raime910
Posts: 16
Registered: ‎09-04-2008

Re: Close Menu On Button Click

Thank you so much Richard!
Please use plain text.