Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsk!ech From: ech@cbnewsk.att.com (ned.horvath) Newsgroups: comp.sys.mac.hypercard Subject: Re: click at ... with problems Message-ID: <1991May6.155228.14352@cbnewsk.att.com> Date: 6 May 91 15:52:28 GMT References: <11126@bunny.GTE.COM> Distribution: usa Organization: AT&T Bell Laboratories Lines: 37 In article <11126@bunny.GTE.COM> mrs2@bunny.gte.com (Mark Scherfling) writes: >Ok, this has got to be a well known bug-a-boo, but I'm lost. >I have a script which reads: > click at the loc of cd btn test with optionKey >And within cd btn test I have the handler: > on mouseUp > if the optionKey is down then .... > >But the logic never executes. When I manually click in the button with >the optionKey, it works fine. You might separate the operation from the way it's invoked: on mouseUp if optionKey then doTheOptionThing else ... end if end mouseUp on doTheOptionThing ... end doTheOptionThing Now you can "send doTheOptionThing to theButton" from anywhere. Naturally you'll choose a more meaningful name than 'doTheOptionThing,' unless you're George Bush... =Ned Horvath= ehorvath@attmail.com -- =Ned Horvath= ehorvath@attmail.com