Hi John,

Andu's solution appears to be working for me. In response to your question, my project consists of a main stack, which is essentially a splash screen for the purposes of creating a standalone, and a substack, which does all of the work and saves data. However, I have set up the substack using the stackFiles property. I'm bewildered that your solution using "exit preOpenStack" does not work.

Greg

Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_________________________
"Absence of evidence is not evidence of absence."
- Anonymous



From: John Kiltinen <[EMAIL PROTECTED]>
Subject: Re: PreOpenStack Handler Interferes with Message Box
Date: Sat, 7 Jul 2001 22:42:30 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
In-Reply-To: <[EMAIL PROTECTED]>

Andu wrote:

Use:

on preopenstack
if the name of this stack is X then...[prompt me for the password]
end preopenstack

in reply to this from Gregory Lypny:

Hi Everyone,

I have a stack with a PreOpenStack handler that prompts the user for
a password before the stack opens the first card. Very often when I'm
editing the stack, my use of the Message Box causes the handler to be
invoked inexplicably, prompting me for the password. I'd like to stop
this. Any thoughts?

Gregory's problem sounds very similar to one I had recently. In my case,
the problem was that when substacks of a main stack are opened, they cause
the messages preopenStack, openStack, openCard, etc. to be sent, and these
get caught and processed by handlers of the main stack. (Gregory, is the
message box you were working with one that was cloned and made a substack
of your main stack. If so, your problem is exactly like mine.)

I tried a solution of the sort that Andu proposes, but wasn't getting it to
work. What finally did work was to put do-nothing handlers in the scripts
for my substacks, such as:

on preopenStack
exit preopenStack
end preopenStack

on openStack
exit openStack
end openStack

John Kiltinen


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
John Kiltinen ([EMAIL PROTECTED]) Home Office
Professor, Dept. of Math. & CS Tel.(906) 228-8035 or (906) 227-1600
Northern Michigan University Fax (906) 228-4667 or (906) 2272010
Marquette, MI 49855 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




--------------- END metacard.v004.n385 ---------------



Reply via email to