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

Honeywell Differential Amplifier P/N: 51107758-003
$300.0
Honeywell Differential Amplifier P/N: 51107758-003 pictureSPOTWAVE Z1900CU CELL PHONE NETWORK SIGNAL AMPLIFIER
$25.0
SPOTWAVE Z1900CU CELL PHONE NETWORK SIGNAL AMPLIFIER pictureTEKTRONIX 5A20N DIFFERENTAL AMPLIFIER INSTRUCTION MANUAL WITH SCHEMATICS
$4.95
TEKTRONIX 5A20N DIFFERENTAL AMPLIFIER INSTRUCTION MANUAL WITH SCHEMATICS picturePortable Waist Voice Amplifier Loudspeaker Megaphone Booster MP3 FM Headset Mic
$33.99
Portable Waist Voice Amplifier Loudspeaker Megaphone Booster MP3 FM Headset Mic pictureTEKTRONIX AM503 + A6302 CURRENT PROBE AMPLIFY + Probe AC+DC Cal 02-0.6oz844
$732.51
TEKTRONIX AM503 + A6302 CURRENT PROBE AMPLIFY + Probe AC+DC Cal 02-0.6oz844 picture






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