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.

Posts: 77
Registered: ‎04-01-2011
My Device: Bold 9700
My Carrier: Rogers
Accepted Solution

Scroll large verticalfieldmanager

I have a MainScreen, on which I create a scrollable area like this :


scrollArea = new VerticalFieldManager(Manager.USE_ALL_HEIGHT | Manager.USE_ALL_WIDTH |


I add several VerticalFieldManagers to the scroll area. I have one VFM that is very large  (several times larger (vertically) than the physical screen).


My problem is when I scroll on devices like the 9700.


As the focus changes from the large VFM to the next, the page scrolls as the focuse changes, but only to the top of the next VFM. It is never possible to see the 'middle' of the large VFM.


How do I scroll across multiple VFMs smoothly so that I can see all parts of the fields on the screen?





Posts: 84
Registered: ‎07-22-2011
My Device: bb-9550,bb-9700
My Carrier: bb developer

Re: Scroll large verticalfieldmanager



Add null field to the non scrollable vfm to view the total field when you scroll up...




Posts: 77
Registered: ‎04-01-2011
My Device: Bold 9700
My Carrier: Rogers

Re: Scroll large verticalfieldmanager

Thanks for the reply but I already have a NullField. The problem is that the entire field is larger than the screen, and my focus is either on the top of each VFM or on the NullField. The entire field can't be viewed at once it's too large, and I need to get the scroll such that I can scroll across the field, not just focusing on the top of the field.

New Developer
Posts: 108
Registered: ‎01-23-2012
My Device: torch,bold,curve,strom
My Carrier: Blackberry

Re: Scroll large verticalfieldmanager

Hi ,

 You can add a null field in last and make it focussable.


Hope it will work!

Thanks & Regards,
Kumar Shivam
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Scroll large verticalfieldmanager

[ Edited ]

What sort of Field is it that is quite large?


There are a variety of solutions to this, and the best one will depend on the type of Field and the scrolling you require.


For example:


Here is a possible solution for a large Bitmap.



And for a large LabelField, you can convert it to a RcihTextField. 

Posts: 77
Registered: ‎04-01-2011
My Device: Bold 9700
My Carrier: Rogers

Re: Scroll large verticalfieldmanager


Yes, it is a class that extends LabelField.


I changed it to RichTextField and (along with a few other adjustments :-) ) it scrolls the way I want it to.


Thanks @peter_strange!