Welcome!

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

Reply
Contributor
beenjaminnn
Posts: 49
Registered: ‎05-02-2012
My Device: Bold 9790
Accepted Solution

Vertical scrolling without focusable items

Hi there,

 

I think there probably is a simple answer to this question but I can't seem to get it.

I have a screen with a number of fields that are non focusable. However this ends up meaning that sometimes I can't scroll all the way down to the bottom of the screen. Is there some way I can fix this?

 

Thank you,

Ben

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Vertical scrolling without focusable items

[ Edited ]

On touchscreen you can scroll.  Trackpad is the problem.  You have to have focusable field for default processing to scroll using trackpad devices.

 

Two solutions:

1) Add NullField - these don't show but make the focusing work - this is my usual approach

2) Override navigationMovement on the Manager and setVerticalScroll.  I have never done this, but see no reason why it won't work.  But you may spend sometime getting it working nicely. 

 

Let us know what you decide to do. 

Contributor
beenjaminnn
Posts: 49
Registered: ‎05-02-2012
My Device: Bold 9790

Re: Vertical scrolling without focusable items

Hi there,

 

For now I'm just using a NullField which is working great, I'll see if I can get the navigationMovement and setVerticalScroll to work later.

 

Ben