Re: Dual Purpose Applet Question
Re: Dual Purpose Applet Question
- Subject: Re: Dual Purpose Applet Question
- From: John W Baxter <email@hidden>
- Date: Tue, 5 Dec 2000 16:48:34 -0800
At 17:49 -0500 12/5/00, email@hidden wrote:
>
If the applet was "stay open", and you double click on it after it is running,
>
it doesn't get sent a "run" event.
>
>
The solution is to provide a "reopen" handler
>
>
on reopen
>
beep 3
>
end reopen
>
>
The initialization logic in complex programs can get tricky, because you
>
may get
>
"reopen" after an "open", or you may get it after a "run". But in your case,
>
you probably can just make the "reopen" handler just call "run".
There was an older version of FileMaker (before the reopen event was
created) which tried to implement "if you get a run (oapp) message when you
have been running, ignore it" by removing the oapp event handler. But it
botched the removal, and so responded to oapp events in mid-run by doing
its initial oapp event stuff again.
The reopen way is better. ;-)
--John
--
John Baxter email@hidden Port Ludlow, WA, USA