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

Lot of 6 Aastra / Talkswitch Model 9133i SIP VoIP Business Phone - USED
$50.0
Lot of 6 Aastra / Talkswitch Model 9133i SIP VoIP Business Phone - USED pictureLot of 3 Mitel 5235 IP VOIP Business Telephone Base Only
$25.0
Lot of 3 Mitel 5235 IP VOIP Business Telephone Base Only pictureCISCO 7970G-FCH1106A37S VOIP IP BUSINESS TOUCH DISPLAY PHONE
$75.0
CISCO 7970G-FCH1106A37S VOIP IP BUSINESS TOUCH DISPLAY PHONE  picture3Com VCX V7122 1-Span E1/T1 Digital VoIP Gateway 3CRVG71220-07
$600.0
3Com VCX V7122 1-Span E1/T1 Digital VoIP Gateway 3CRVG71220-07 pictureTANDBERG TTC4-01 Tactical MXP Portable VOiP Video Communication System Police NR
$250.0
TANDBERG TTC4-01 Tactical MXP Portable VOiP Video Communication System Police NR picture






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