BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-22-2008, 07: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, 08: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, 09: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, 10: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, 12:09 PM   #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





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