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
New Contributor
csvideo
Posts: 3
Registered: ‎05-31-2012
My Device: Bold 9930

Programmatically scrolling

Hi all how can I scroll to the bottom of a verticalfieldmanager in code

 

Cheers

Chris

Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: Programmatically scrolling

The easiest way that i could think of would be to set focus to the last field in the vfm:

 

myVFM.getField( myVFM.getFieldCount() - 1 ).setFocus();

 

 



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Contributor
amma12345
Posts: 23
Registered: ‎10-17-2011
My Device: 9700

Re: Programmatically scrolling

Hi , 

         You can use VERTICAL_SCROLL and setVerticalScroll(int position) for set the scrolling in your application 

 

Regards

Amma