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

sds6062 60mhz deep memory digital storage oscilloscope 2-channel with lan and
$535.5
 sds6062 60mhz deep memory digital storage oscilloscope 2-channel with lan and pictureNEW DIGITAL UNIBUS MEMORY TIMING AND CONTROL MODULE M8293 M8243B
$399.99
NEW DIGITAL UNIBUS MEMORY TIMING AND CONTROL MODULE M8293 M8243B picture170202 New-No Box, Mitsubishi FX-EEPROM-4 FX Memory Cassette
$47.19
170202 New-No Box, Mitsubishi FX-EEPROM-4 FX Memory Cassette pictureMemory Foam 59109 Handstand Mouse Mat
$12.27
Memory Foam 59109 Handstand Mouse Mat picture icm450 3-phase monitor, 25-fault memory, lcd setup and diagnostics, fault
$139.16
 icm450 3-phase monitor, 25-fault memory, lcd setup and diagnostics, fault picture






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