BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-31-2009, 03:37 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 7100T
PIN: N/A
Carrier: -
Posts: 73
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default is there onClick method for Dialog?

Please Login to Remove!

hi,

is there such a method as 'onClick' for Dialog? i mean-when i have Dialog.ok, after clicking on 'ok' i would like some action to happen.

kind regards
Offline  
Old 01-31-2009, 05:45 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

You'll need to extend the Dialog or PopupScreen class and:

1. add a button (like "Ok")
2. Add a FieldListener to the Button

See the API docs for Dialog, PopupScreen, ButtonField, and FieldChangeListener.
Offline  
Old 01-31-2009, 05:47 PM   #3 (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

There is a "navigationClick()" method in the Screen class also - you might just override this method and to see if your ButtonField is the field with the focus, then execute your action.
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

10pcs WH5-1A 1M Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer
$6.19
10pcs WH5-1A 1M Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer picture5pcs WH5-1A 1M Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer
$3.99
5pcs WH5-1A 1M Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer picture1pcs WH5-1A 1M Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer
$0.99
1pcs WH5-1A 1M Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer pictureLitton Precision Products Potentiometer 5735-203 D/C 8012 -NIB-
$24.99
Litton Precision Products Potentiometer 5735-203  D/C 8012 -NIB- picture10pcs WH5-1A 680K Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer
$6.19
10pcs WH5-1A 680K Ohm 4mm Shaft 3 Terminal Linear Taper Rotary Potentiometer picture






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