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

BlackBerry® World™ Development

Reply
New Contributor
jcolombet
Posts: 9
Registered: ‎03-22-2010
My Carrier: Ingénieur d'études

How to disable popup menu ?

Hye everybody !!

 

I develop a J2ME application which uses some lists. I test my application on two devices :

 - Curve 8820

 - Bold 9700

 

I noticed two differents behaviour on the two device when click on the pad or on the trackball on an item list :

 - on the curve a popup menu appears and we have to scroll to choose the action we want

 - on the blod the popup menu is not displayed and the menu item is directly chosen

 

So here is my question :

How can I disable the popup menu in Curve device (os 4.5), of course if it's possible.

 

Thank in advance,

regards

Please use plain text.
Developer
demotics2002
Posts: 64
Registered: ‎07-15-2010
My Carrier: Starhub

Re: How to disable popup menu ?

Try the constant property "ButtonField.CONSUME_CLICK" is argument whenever you instantiate your field.

 

Example.

ButtonField button = new ButtonField(ButtonField.CONSUME_CLICK);

 

Or you may also want to override, navigationClick(){}. In this method it must return true to keep the popup menu.

 

Please use plain text.