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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
csvideo
Posts: 3
Registered: ‎05-31-2012
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: 260
Registered: ‎08-06-2010

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 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.