08-30-2012 11:59 PM
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_SCROLLBA
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?
Solved! Go to Solution.
08-31-2012 01:14 AM
Hi
Add null field to the non scrollable vfm to view the total field when you scroll up...
Thanks
08-31-2012 01:19 AM
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.
08-31-2012 01:20 AM
Hi ,
You can add a null field in last and make it focussable.
Hope it will work!
08-31-2012 07:53 AM - edited 08-31-2012 08:02 AM
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-Develo
And for a large LabelField, you can convert it to a RcihTextField.
09-03-2012 11:17 PM
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!