modal dialog/handler placement?
yoy
yoy at comcast.net
Sun Aug 3 16:48:01 EDT 2003
Klaus,
WHOA!!!
Moved the handler to the "Prefs" sub-stack scriptspace and used "send
resetboards to stack "OmniLotto" and it works just like it's supposed to!!!
Many thanks!
Andy
----- Original Message -----
From: "Klaus Major" <klaus at major-k.de>
To: <use-revolution at lists.runrev.com>
Sent: Sunday, August 03, 2003 4:53 PM
Subject: Re: modal dialog/handler placement?
> Hi Andy,
>
> > Day 3.
> >
> > My lotto program has a main stack with buttons on it for mouse clicking
> > lotto numbers instead of typing them into the gamelist field.
> >
> > I have a sub-stack "Prefs" which is modal. This stack is where you set
> > up
> > the lotto rules: maxLottoNumbers, maxBonusNumbers, etc.
> >
> > I have a handler "resetboards" which shows or hides buttons on the main
> > stack according to those sub-stack field values. They are declared as
> > global. I can run it successfully from the message board. I'd like to
> > have
> > resetboards run
>
> > !!! after the "Preferences" sub-stack is closed !!!
>
> looks like you gave the answer to yourself ;-)
>
> > so upon return to the main stack, the buttons are reconfigured in
> > advance.
> > Where should I call resetboards from???
>
> Stack "Prefs":
>
> on closestack
> ...
> resetboards
> ## or: send "resetboard" to xxx
> ## in case the handler does not reside in that stack...
> end closestack
>
> > Thanks for your help.
>
> Yo :-)
>
> > Andy
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> www.major-k.de
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list