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
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified
Accepted Solution

Scrolling only a VerticalFieldManager in MainScreen

Hello,

 

I have a class that extends MainScreen. This screen contains a HorizontalFieldManager with a nested VerticalFieldManager. The VerticalFieldManager is set to scroll. I want to make the VerticalFieldManager scrollable to the point where the VerticalFieldManager is the ONLY thing that scrolls. Currently, the whole screen will scroll.

 

I was able to do this successfully by extending "PopupScreen" instead of "MainScreen" and specifying in the constructor:

 

 

super(new VerticalFieldManager(NO_VERTICAL_SCROLL | NO_VERTICAL_SCROLLBAR),Field.FOCUSABLE);

 

This is no good for, however, because I need to use the setStatus() method, which I believe is only accessible by extending MainScreen.

 

Is there anyway that I can achieve this while extending MainScreen and having access to setStatus()?

 

Thanks!

 

 

Developer
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified

Re: Scrolling only a VerticalFieldManager in MainScreen

Solved with super(NO_VERTICAL_SCROLL);