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
My Carrier: DidiCell

Programmatically scrolling

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

 

Cheers

Chris

Please use plain text.
Developer
RileyGB
Posts: 282
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
Please use plain text.
Contributor
amma12345
Posts: 23
Registered: ‎10-17-2011
My Device: 9700
My Carrier: NA

Re: Programmatically scrolling

Hi , 

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

 

Regards

Amma

Please use plain text.