BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-03-2007, 10:29 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default I need dialog that has only cancel choice ?

Please Login to Remove!

I want to get a dialog that has only cancel choice, not an OK/CANCEL Dialog, just CANCEL Dialog ...Have any ideas?
Offline  
Old 07-03-2007, 11:31 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2006
Model: 8300
Carrier: Cingular
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could create a Dialog with type Dialog.D_OK. It has only one option.

Otherwise, you can create a Dialog with just cancel as follows:

Code:
String choices[] = new String[]{"Cancel"};
int values[] = new int[]{Dialog.CANCEL};

int response = Dialog.ask("Some message", choices, values, Dialog.CANCEL);
Offline  
Old 07-04-2007, 02:07 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, man!!! It looks good ! I should think harder .
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.