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
kemdada
Posts: 37
Registered: ‎10-10-2008
My Device: Not Specified
Accepted Solution

Using Vertical Field Manager for a LogScreen.

I'm not sure, I must be doing something wrong here, can someone hint me. I'm trying to do like a logscreen using vertical field Manager and adding my logs to the manager as labelfields, but the screen doesn't seem to be scrolling past the front view.

 

 

class LogScreen extends MainScreen{ VerticalFieldManager screenManager = new VerticalFieldManager(Manager.VERTICAL_SCROLLBAR | Manager.VERTICAL_SCROLL); LogScreen() { this.setTitle("DEVELOPER LOGSCREEN"); for(int i=0;i<=40;i++) { screenManager.add(new LabelField("This is an annoying test to understand the vertical field manager")); } add(screenManager); } }

 

Please use plain text.
Administrator
MSohm
Posts: 14,313
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Using Vertical Field Manager for a LogScreen.

A field must be focusable in order to enable scrolling.  You can create your LabelFields using the FOCUSABLE style or add a focusable NullField between your LabelFields.  The NullField won't be visible to the user, but will allow scrolling.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
kemdada
Posts: 37
Registered: ‎10-10-2008
My Device: Not Specified

Re: Using Vertical Field Manager for a LogScreen.

that definately did it. Thanks.
Please use plain text.