Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 5
Registered: ‎09-22-2009
My Device: Not Specified

NavigationMovement not working 8700 (trackwheel) device

We have implemented navigationMovement method to handle left, right, up and down arrow button handling. And this functionality works fine in all devices with trackball.


This is not working for devices with trackwheel (8700). Can someone please help us here?


We have used Field and painted the cells(row and columns) in that field using drawRow and would like to navigate among those cells.


we dont see any issue with trackball devices.


Your help is really appreciated.

Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: NavigationMovement not working 8700 (trackwheel) device

I think your best bet is to implement TrackwheelListener in your Screen class, and map the left/right movement to navigationMovement() and map the click to navigationClick().



public boolean trackwheelRoll(int amount, int status, int time) { return navigationMovement(0,amount,status,time); } public boolean trackwheelClick(int status, int time) { return navigationClick(status,time); }


Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: NavigationMovement not working 8700 (trackwheel) device

What handheld software version is this 8700 running? 8700 usually comes with v4.1.x out of the box. navigationClick() was introduced in v4.2. Also, I don't know whether navigationClick is triggered by trackwheel at all, even on v.4.2+...
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: NavigationMovement not working 8700 (trackwheel) device

From memory, and I did test this sometime ago, navigationClick is NOT triggered, even when the OS on the device is upgraded to 4.5.


Also to add to the solution presented by RexDoug, on these devices, holding the ALT down while scrolling is usually intended to trigger up and down movement of the focus.  So I would check the status for ALT and use that to determine if the movement should be passed as a movement in the 'x' or 'y' direction (up/down or left/right).  Hope that makes sense.

Posts: 77
Registered: ‎06-03-2009
My Device: Not Specified

Re: NavigationMovement not working 8700 (trackwheel) device

thanks RexDoug, you helped me fix a problem I have been working on for hours with my listfield, I always use the mousewheel to scroll the simulator, and this caused  a problem with highlighting my listfield, the previous row remained highlighted, i fiinally realized the mousewheel activates the trackwheel  so i needed to catch the trackweel event and invalidate the screen. so this fix the problem for devices without a trackball.