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
Developer
eicheled
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 |
                Manager.VERTICAL_SCROLL|Manager.VERTICAL_SCROLLBAR);

 

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?

 

 

 

 

Please use plain text.
Developer
cyndrilla
Posts: 84
Registered: ‎07-22-2011
My Device: bb-9550,bb-9700
My Carrier: bb developer

Re: Scroll large verticalfieldmanager

Hi

 

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

 

 

Thanks

 
Please use plain text.
Developer
eicheled
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.

Please use plain text.
New Developer
shivam284
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
Please use plain text.
Developer
peter_strange
Posts: 19,595
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.

http://supportforums.blackberry.com/t5/Java-Development/Create-a-scrollable-image-field/ta-p/444955

 

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

Please use plain text.
Developer
eicheled
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!

Please use plain text.