Quote:
Originally Posted by simon.hain
popupscreen is a quite easy to use class. just create a manager, put it into the popupscreen and use pushModalScreen to "block" the application from input.
you have to include elements that close the screen, of course. for example overwrite navigationclick or keychar etc
|
Sorry, I'm pretty new to BlackBerry development, but do I have to use the VerticalFieldManager as the manager for a PopupScreen? Here's the code that I have so far, I'm assuming I need to change my last line to the pushModalScreen function?
Code:
final VerticalFieldManager mgr = new VerticalFieldManager(VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
VerticalFieldManager.NO_VERTICAL_SCROLLBAR |
VerticalFieldManager.USE_ALL_HEIGHT |
VerticalFieldManager.USE_ALL_WIDTH);
PopupScreen pps = new PopupScreen(mgr, PopupScreen.DEFAULT_CLOSE);
getScreen().getUiEngine().pushScreen(pps);