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

100% Genuine Apple OEM EarPods with Remote and Mic with TrendON Headphone cell p
$23.16
100% Genuine Apple OEM EarPods with Remote and Mic with TrendON Headphone cell p pictureNEW OEM Original Genuine Apple MacBook Pro 13 A1278 2009 2010 2011 US Keyboard &
$34.79
NEW OEM Original Genuine Apple MacBook Pro 13 A1278 2009 2010 2011 US Keyboard & pictureLot of 3 - Apple Imagewriter II Ribbons - OEM Apple Brand, Sealed in Plastic
$18.95
Lot of 3 - Apple Imagewriter II Ribbons - OEM Apple Brand, Sealed in Plastic pictureGM ACDELCO - STEM APPL VALVE BODY 2063655 - GM ACDELCO OEM
$46.0
GM ACDELCO - STEM APPL VALVE BODY 2063655 - GM ACDELCO OEM pictureGM ACDELCO - PIN PKG INTER BAND APPL 8632975 - GM ACDELCO OEM
$46.0
GM ACDELCO - PIN PKG INTER BAND APPL 8632975 - GM ACDELCO OEM picture






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