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
Highlighted
Developer
Posts: 96
Registered: ‎03-06-2009
My Device: Not Specified
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 

 

 

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Hiding a full menu on a trackwheel click

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

 

 

 

 

Developer
Posts: 96
Registered: ‎03-06-2009
My Device: Not Specified

Re: Hiding a full menu on a trackwheel click

Thanks Smiley Happy