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
yann247
Posts: 96
Registered: ‎03-06-2009
Accepted Solution

Hiding a full menu on a trackwheel click

Hello,

 

I haven't created any menu in my application.

I dynamically add a button to a screen using this code:

 

 

ButtonField getDetailsButton = new ButtonField("See details", Field.FOCUSABLE | Field.FIELD_RIGHT); getDetailsButton.setChangeListener(new FieldChangeListener() {public void fieldChanged(Field field, int context) { ((CampaignManagementScreen)field.getScreen()).requestInfo("test");}});

 

Problem is, when I click a button using the trackwheel, a popup menu shows with an item "full menu". Then my action is performed normally. Do you know I can get rid of that menu?

 

thanks 

 

 

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008

Re: Hiding a full menu on a trackwheel click

You need to set the style CONSUME_CLICK in your buttonfield constructor.

 

 

 

 

Please use plain text.
Developer
yann247
Posts: 96
Registered: ‎03-06-2009

Re: Hiding a full menu on a trackwheel click

Thanks :smileyhappy:
Please use plain text.