BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-02-2008, 10:50 AM   #1 (permalink)
New Member
 
Join Date: Nov 2008
Model: ?????
PIN: N/A
Carrier: vodafone uk
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Detecting scroll direction from ListField

Please Login to Remove!

Hi,

I need to detect scroll direction inside a ListField. I have added a focusChangeListener to the ListField but I can't see how you would detect the direction that it has moved (up or down).

I also looked at Field.onFocus() as this takes as a parameter the direction but it's not working as I am wanting to detect the scroll from within the ListField, not from another Field to the ListField.

Any suggestions?

As a worst case I could try something where you save the selectedIndex and compare it to the new selectedIndex on Focus change but I would prefer to implement something cleaner.

Thanks.
Offline  
Old 12-02-2008, 12:29 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Override navigationMovement() in your ListField.

You can look at the dx,dy parameters, then call super.navigationMovement().
Offline  
Old 12-03-2008, 03:58 AM   #3 (permalink)
New Member
 
Join Date: Nov 2008
Model: ?????
PIN: N/A
Carrier: vodafone uk
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, i'll get right on it.
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

FWP-20A14F 20 Amp, 700V, Semiconductor, Bussmann Fuse
$17.5
 FWP-20A14F 20 Amp, 700V, Semiconductor, Bussmann Fuse pictureSmall Signal Zener Diodes,Vishay Semiconductor, 1N5230B-TR, 0.5W 4.7V 5%,100 pcs
$3.05
Small Signal Zener Diodes,Vishay Semiconductor, 1N5230B-TR, 0.5W 4.7V 5%,100 pcs pictureBUSSMAN FWH-40B SEMICONDUCTOR FUSE FWH40B 40A BOLT-ON (lot of 3)
$0.99
BUSSMAN FWH-40B SEMICONDUCTOR FUSE FWH40B 40A BOLT-ON (lot of 3) pictureNEW MICROWAVE MA4933B Semiconductor Device DIODE SILICON SCD , 152-0363-00
$65.0
NEW MICROWAVE MA4933B Semiconductor Device DIODE SILICON SCD , 152-0363-00 picture1982 ECG Semiconductor Master Replacement Guide
$8.99
1982 ECG Semiconductor Master Replacement Guide picture






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