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
AGETL
Posts: 1
Registered: 11-08-2009

Menu open by clicking on a DIALOG screen

So, the problem is that when i popup a dialog screen and i make click on (in example) OK using the trackball, the menu of the main screen is opened on background... So, what i have to do to solve this problem... Thank you and excuse my english!

Please use plain text.
Developer
johnbibs
Posts: 903
Registered: 02-07-2009
My Carrier: Globe Telecom

Re: Menu open by clicking on a DIALOG screen

set the CONSUME_CLICK of the ButtonField.

 

 

Ex:

 

ButtonField okButton = new ButtonField("Ok", ButtonField.CONSUME_CLICK);

Please use plain text.
Developer
peter_strange
Posts: 14,611
Registered: 07-14-2008

Re: Menu open by clicking on a DIALOG screen

Welcome, your English is fine!

 

If johnbibs suggestion does not work, can we see the source for your Dialog screen please?

Please use plain text.