BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Scscreen.onDisplay(), and Screen.afterDisplay()? (http://www.blackberryforums.com/developer-forum/180352-scscreen-ondisplay-screen-afterdisplay.html)

icess 03-10-2009 03:11 AM

Scscreen.onDisplay(), and Screen.afterDisplay()?
 
In blackBerry Screen class ,there is a method onDisplay() to do something before showing the screen .

Code:

onDisplay

protected void onDisplay()

    Invoked when this screen is pushed onto the display stack.

now i want do something after a screen has been painted. just like afterDisplay() or afterPaint().

there is a way to do this? any help? thanks!

hippocamp software 03-10-2009 09:44 AM

onExposed()?

icess 03-10-2009 07:53 PM

only after onObscured() method called(some screen, dialog or open the menu will cause this method be called), the onExposed() method has being called.

right now I use this:

Code:

protected void onDisplay() {
                super.onDisplay();
                getApplication().invokeLater(new Runnable() {

                        public void run() {
                                Dialog.alert("on dispaly method called!");
                               
                        }
                       
                });
        }

looks like, after the screen displayed , the alert is showing.

zechariahs 03-15-2009 06:49 PM

Depending on which version you're using, try onUiEngineAttached.


All times are GMT -5. The time now is 02:23 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.