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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.