Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!voder!apple!hyperbug From: hyperbug@apple.UUCP (Keith Rollin) Newsgroups: comp.sys.mac.hypercard Subject: Re: Update events in HyperCard? Message-ID: <6638@apple.UUCP> Date: Thu, 5-Nov-87 12:31:39 EST Article-I.D.: apple.6638 Posted: Thu Nov 5 12:31:39 1987 Date-Received: Sun, 8-Nov-87 02:32:04 EST References: <1394@elrond.CalComp.COM> Reply-To: hyperbug@apple.UUCP (Keith Rollin) Distribution: na Organization: Apple Computer Inc., Cupertino, USA Lines: 25 Keywords: XCMD, Update In article <1394@elrond.CalComp.COM> anson@elrond.CalComp.COM (Ed Anson) writes: >I am trying to design an XCMD that will produce a special graphic on part of >the card. Unfortunately, I don't know how to handle the case where the >card might be temporarily obscured by another window. In a regular >application, I would receive an update event, but this doesn't seem to be >available in HyperCard scripts. Am I overlooking something? HELP! The technique I use is to open a Picture, draw to it, post it to the Clipboard (be sure to to a ZeroScrap first! I forgot and had many weird things happen), and then do a "SendCardMessage('type "V" with commandkey')" That pastes the picture on the clipboard PERMANENTLY on to the card. If you don't want it there, and you don't do anything else to the card, I think that you can just UNDO the changes. NOTE: this method is not all the blindingly fast. First of all, posting to the clipboard is not that fast, but it takes HyperCard twice as long to load in its painting tools and paste the picture. Hope this helps. -- Apple's HyperCard Grievance Center "Give us your bugs, your comments, your gentle criticisms..." UUCP: {pyramid!sun,voder,nsc,ucbvax!mtxinu,dual,decwrl,amdahl}!apple!hyperbug