Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!apple!greggor From: greggor@Apple.COM (Greg L. Anderson) Newsgroups: comp.sys.mac.hypercard Subject: Re: Object Graphics (QUERY) Message-ID: <44657@apple.Apple.COM> Date: 10 Sep 90 16:31:17 GMT References: <8731@latcs1.oz.au> Organization: Apple Computer Inc., Cupertino, CA Lines: 27 In article <8731@latcs1.oz.au> jacob@latcs1.oz.au (Jacob L. Cybulski) writes: >Is there any public or commercial utility to organise a set of MacDraw-like >tools allowing the construction of Hypercard cards of movable graphical >objects. Preferably, the objects would behave as HC buttons and have >scripts attached. I have written an XCMD polygon button handler for HC 1.2.5 that does about half of what you want. The polygons are all transparant autohilite--drawing non-transparant objects on a hypercard card is not feasible, as there is no easy way to give your XCMD's update events. Tail-patching WaitNextEvent would work--if tail-patching in general worked, which it doesn't. If anyone has any ideas about drawing on HC's card in non-XOR mode, I'd like to hear them too. My XCMD detects clicks on the polybuttons by intercepting mouseDown events on the card or bg layer, building a region for each polybutton, and checking PtInRegion to find hits. This process is actually pretty fast--it takes about 20 ticks from the mousedown event until the time the polybutton's script takes control. If anyone is interested in this XCMD, I might clean it up and post it. Some manual setup is required. -- ___\ /___ Greg Anderson ___\ /___ \ \ / / Advanced Technology Group \ \ / / \ /\/\ / Apple Computer, Inc. \ /\/\ / \/ \/ greggor@apple.com \/ \/