12-29-2011 11:27 AM - edited 12-29-2011 12:31 PM
On phones that don't have a touch screen, I'm having trouble with scrolling. I have a Main screen that contains two vertical field managers one immediatly following the other. Inside both of these managers are a bunch of labels. I want to be able to scroll down the screen when the labels contain alot of text.
Main Screen
|-----------------|
| Inside vert |
| manager 1 |
|-----------------|
| Inside vert |
| manager 2 |
| |
-----------------
This works on touch screen phones but not with the trackball. I just can't scroll anywhere with the trackball but I do see the little arrow at the bottom of the screen that indicates you should be able to scroll down. Any ideas?
Solved! Go to Solution.
12-29-2011 07:55 PM
Tracked will only scroll onto focusable Fields. So you have to have focusable Fields to do scrolling normally. Add a NullField between your labels and the trackpad scrolling will start working. Alternatively, make your labels focusable.
01-03-2012 08:56 AM
Thank you for the response Peter. Adding the null fields allows scrolling, but unfortunately the scrolling is not fine enough. That is, a single scroll increment will jump too far down. This happens when a single textfield contains many lines of text. Is there some kind of scrollable textbox in blackberry?
01-03-2012 09:04 AM
And how does the blackberry email client do it? There is a nice cursor that moves through the text as you scroll. Is this custom built for that app?
01-03-2012 09:12 AM - edited 01-03-2012 09:16 AM
So I figured out what to do. Instead of use LabelField, I use an EditField. Also, to prevent editing I call setEditable(false) on each EditField.
01-03-2012 09:48 AM
That works, but FYI in this sort of situation I use RichTextField, which is read only by default.
01-03-2012 10:17 AM
Ok, great thank you.