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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
behrk2
Posts: 362
Registered: ‎11-25-2009
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!

 

 

Please use plain text.
Developer
behrk2
Posts: 362
Registered: ‎11-25-2009

Re: Scrolling only a VerticalFieldManager in MainScreen

Solved with super(NO_VERTICAL_SCROLL);

Please use plain text.