Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!jdevoto From: jdevoto@Apple.COM (Jeanne A. E. DeVoto) Newsgroups: comp.sys.mac.hypercard Subject: Re: Barn Door ? Message-ID: <31913@apple.Apple.COM> Date: 29 May 89 12:16:41 GMT References: <194.247FEC4C@bmug.FIDONET.ORG> Organization: Apple Computer Inc, Cupertino, CA Lines: 27 In article <194.247FEC4C@bmug.FIDONET.ORG> Rob.Weinberg@f444.n161.z1.FIDONET.ORG (Rob Weinberg) writes: >I have a button script that ends in >..unlock screen with barn door close... > >The script and the visual effect work fine. The *problem* is that when I >activate the button {"send mouseUp to .."} from a field script, the button >script works fine *except* for the barn door visual effect. The field >script begins with a "lock screen". The lockScreen property (which is set to true by the "lock screen" command) is cumulative; that is, if you set it to true twice in a script, then set it to false, it will still be true and the screen will still be locked. (The property is automatically set back to false at idle time.) It looks as if you are calling "lock screen" twice (once in your field script, and then again in your button's script). Thus, unlocking the screen only undoes one lock: the screen is still locked and the visual effect is not seen. If I'm right about this, a line such as if the short name of the target is "My Calling Field" then unlock screen placed just before the "unlock screen with visual effect" command will allow the effect to be seen. You may also want to redesign things so the screen doesn't get locked twice. jeanne a. e. devoto jdevoto@apple.com