09-10-2008 07:27 AM
I need a field similar to EditField, but with scrollable text. EditField jumps in a new line if the contents occupy more than one line, but i would like the text to be only in one line, and to be able to scroll it to right and left if it is longer than one line.
How can i do it?
Solved! Go to Solution.
09-10-2008 03:57 PM
Have a look at the sample in this BlackBerry Developer Journal article. IT may do what you need.
09-11-2008 03:23 AM
Thank you very much! Both answers helped me.
I used the TextBoxField from BlackBerry Developer Journal article, but instead of VerticalManager vfm I created a HorizontalManager, and added the EditField to it. Now it works fine.
Thank you again!
09-10-2009 01:50 AM
Have a look at this CustomTextBox example.
05-11-2011 07:29 AM
I am also facing same problem. I need to crate a scrollable editfield. The editField can increase upto 4 lines after that it must display last 4 lines. On scrolling up and down user can go through the message. I have gone through the link
05-11-2011 09:27 AM
First of all, stop using that old example - it has some harmful code in it. Here is a knowledge base article which was created specifically to address those problems:
If you want a scrollbar there, you can replace VerticalFieldManager (vfm) in that code with VerticalScrollManager from the following article (remove VERTICAL_SCROLLBAR from vfm's constructor):
Both articles have comments with additional ideas - take a look.