BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-22-2009, 02:23 PM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8800
PIN: N/A
Carrier: at&t
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Is there a way to change button captions in the Dialog

Please Login to Remove!

If you have "Yes" and "No" buttons in the Dialogbox, is there a way to change the button captions to something else, for example, "Yes" and "No" to "Proceed" and "QUit? Or, do I need a class other than Dialog? Thank you in advance.
Offline  
Old 07-22-2009, 03:23 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

See the API docs for Dialog - instead of taking one of the "prebuilt" static options, you construct one that has your choices.

Like this one:

Dialog
public Dialog(String message,
Object[] choices,
int[] values,
int defaultChoice,
Bitmap bitmap)Constructs a new Dialog instance.
Parameters:
message - Message to display in the dialog.
choices - Objects selectable by the user. Each object is displayed using Object.toString().
values - If this parameter is specified, instead of returning the index selected, doModal() returns the value associated with this index (useful for adding CANCEL).
defaultChoice - Initial choice selected when the Dialog is displayed. If you provide a non-null values parameter, the default choice must be present in the values array. If the values parameter is null, the default choice is the index of the initially selected item.
bitmap - Image to display in the left side of the dialog.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

T5 Electronic Ballast for F21T5, F26T5, F28T5 Lamp - HD128-120AL
$33.5
T5 Electronic Ballast for F21T5, F26T5, F28T5 Lamp - HD128-120AL picturePhilips ballast - 100W NEW
$25.0
Philips ballast - 100W NEW pictureQuantity of 12 GE FLUORESCENT BALLASTS B332I277RH F17 F24 F25 F32 stk 2
$44.95
Quantity of 12 GE FLUORESCENT BALLASTS B332I277RH  F17 F24 F25 F32  stk 2 picture(2) F96T12HO ICN-2S110-SC 120/277v Ballast
$39.99
(2) F96T12HO ICN-2S110-SC 120/277v Ballast pictureGE 2 Lamp Electronic Ballast - GE232MAX-N/ULTRA - QTY 10 - 120/277 Volt - T8
$55.0
GE 2 Lamp Electronic Ballast - GE232MAX-N/ULTRA -  QTY 10 - 120/277 Volt - T8 picture






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