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
Trusted Contributor
QuestionMan
Posts: 167
Registered: ‎06-30-2011
My Carrier: Koodo
Accepted Solution

Does anyone know how to change the auto highlight from 'no' to 'yes' in dialog.ask ?

No big problems here, I just want my 'yes' button highlighted initially instead of the 'no' button in the dialog.ask function. Anyone know how to change it? Thanks!

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

Re: Does anyone know how to change the auto highlight from 'no' to 'yes' in dialog.ask ?

Something like this?

 

int choice = Dialog.ask(Dialog.D_YES_NO, "Do you want to abort the download?", Dialog.NO);

Please use plain text.
Trusted Contributor
QuestionMan
Posts: 167
Registered: ‎06-30-2011
My Carrier: Koodo

Re: Does anyone know how to change the auto highlight from 'no' to 'yes' in dialog.ask ?

Dialog.YES did the trick. thanks dude
Please use plain text.