Event when a form becomes visible [message #23939] |
Sat, 13 December 2008 06:18  |
Eclipse User |
|
|
|
Originally posted by: news.s237965939.online.de
I there an event which is fired everytime when a form becomes visible?
And which I can catch from inside the form. When the user switches away
from a form in my app, and later switches back, parameters may have
changed in the meantime so the form has to be reinitialized.
TIA,
Hans
|
|
|
|
|
|
Re: Event when a form becomes visible [message #24077 is a reply to message #24049] |
Mon, 15 December 2008 13:11  |
Eclipse User |
|
|
|
Originally posted by: news.s237965939.online.de
David Marques schrieb:
> Hello Hans,
>
> Fortunately the Canvas class has the following methods that can help you.
>
> protected void showNotify();
> protected void hideNotify();
Oh, that's good to know. Thanks again, David
Hans
|
|
|
Re: Event when a form becomes visible [message #569103 is a reply to message #23939] |
Sat, 13 December 2008 18:29  |
Eclipse User |
|
|
|
Hello Hans,
Unfortunately there are no callback methods for the events you described.
You would have to implement it yourself. Take a look at the Displayable
isShown() method, maybe it can help you.
[],
David Marques
|
|
|
Re: Event when a form becomes visible [message #569149 is a reply to message #23980] |
Mon, 15 December 2008 02:53  |
Eclipse User |
|
|
|
Originally posted by: news.s237965939.online.de
David Marques schrieb:
> Hello Hans,
>
> Unfortunately there are no callback methods for the events you
> described. You would have to implement it yourself. Take a look at the
> Displayable isShown() method, maybe it can help you.
Thanks David, so i have to roll my own. Btw, I asked the wrong question.
It's all about a canvas, not a form as I wrote but I guess that doesn't
change much, right?
Hans
|
|
|
|
Re: Event when a form becomes visible [message #569202 is a reply to message #24049] |
Mon, 15 December 2008 13:11  |
Eclipse User |
|
|
|
Originally posted by: news.s237965939.online.de
David Marques schrieb:
> Hello Hans,
>
> Fortunately the Canvas class has the following methods that can help you.
>
> protected void showNotify();
> protected void hideNotify();
Oh, that's good to know. Thanks again, David
Hans
|
|
|
Powered by
FUDForum. Page generated in 0.04043 seconds