BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-22-2008, 06:39 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default ButtonField click

Please Login to Remove!

Hi

I have this code mor make a button:

ButtonField boton_avisos_pendientes = new ButtonField("Avisos Pendientes", FIELD_HCENTER | ButtonField.CONSUME_CLICK);
add(boton_avisos_pendientes);

What is it the code for capture the CLICK and make the action of this button?

Thanks, Oscar
Offline  
Old 04-22-2008, 07:49 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

implement fieldchangelistener and add it to your button.

hth,
simon
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 04-22-2008, 08:43 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you very much!
Offline  
Old 04-28-2008, 09:38 AM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hum for a button I think that implementing trackwheelclick is a better way

ButtonField boton_avisos_pendientes = new ButtonField("Avisos Pendientes", FIELD_HCENTER | ButtonField.CONSUME_CLICK)
{
protected boolean trackwheelClick(int status, int time)
{
//Do what you want
}
};
add(boton_avisos_pendientes);
Offline  
Old 04-28-2008, 11:09 AM   #5 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

not if the user uses the enter key.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
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

ANTIQUE LARGE WESTINGHOUSE AMPERES GAUGE DC AMMETER 0-2500 STEAMPUNK
$49.99
ANTIQUE LARGE WESTINGHOUSE AMPERES GAUGE DC AMMETER 0-2500 STEAMPUNK pictureDigital LCD Multimeter Voltmeter Ammeter Ohmmeter AC DC Volt Tester Meter Buzzer
$7.99
Digital LCD Multimeter Voltmeter Ammeter Ohmmeter AC DC Volt Tester Meter Buzzer picturePro Digital Multimeter Backlight AC/DC Ammeter Voltmeter Ohm Portable Meter hot*
$0.99
Pro Digital Multimeter Backlight AC/DC Ammeter Voltmeter Ohm Portable Meter hot* pictureYOKOGAWA AC AMMETER DC VOLTMETER METER DIAL OHM SUBMARINE NAVY MILITARY 4" NEW
$25.69
YOKOGAWA AC AMMETER DC VOLTMETER METER DIAL OHM SUBMARINE NAVY MILITARY 4Crompton 007-05FA-LSSF-C7, AC Ammeter 0-5A, 0-500A Scaled
$74.95
Crompton 007-05FA-LSSF-C7, AC Ammeter 0-5A, 0-500A Scaled picture






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