I don't know why, but I cannot create a scrollable PopupScreen. I've tried different style combinations (which work for a FullScreen), but without success.
Here is what I have:
Code:
final VerticalFieldManager manager = new VerticalFieldManager(
VerticalFieldManager.VERTICAL_SCROLL
|VerticalFieldManager.VERTICAL_SCROLLBAR
| VerticalFieldManager.USE_ALL_WIDTH
| VerticalFieldManager.USE_ALL_HEIGHT) {
protected void paint(Graphics graphics)
{
graphics.setBackgroundColor(backcolor);
graphics.clear();
graphics.setColor(textcolor);
super.paint(graphics);
}
};
... adding many not focusable fields to the manager here ...
Application.getApplication().invokeAndWait(new Runnable() {
public void run() {
PopupScreen pps = new PopupScreen(manager, PopupScreen.DEFAULT_CLOSE);
getScreen().getUiEngine().pushScreen(pps);
}
}); using componentpack4.5.0_4.5.0.14 with Curve simulator.