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
Developer
joseph_beginner
Posts: 23
Registered: ‎03-20-2012
My Carrier: mtc-touch
Accepted Solution

when i press on a button the menu opens by itself?

prntscreen.png

 

when i click any button after the listener does its work the menu list opens up?

 

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: when i press on a button the menu opens by itself?

use CONSUME_CLICK as a style when creating the button.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
RileyGB
Posts: 256
Registered: ‎08-06-2010

Re: when i press on a button the menu opens by itself?

e.g.

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


Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
joseph_beginner
Posts: 23
Registered: ‎03-20-2012
My Carrier: mtc-touch

Re: when i press on a button the menu opens by itself?

thank you so much :smileyvery-happy::smileyvery-happy:

Please use plain text.