Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uunet!cbmvax!ken From: ken@cbmvax.commodore.com (Ken Farinsky - CATS) Newsgroups: comp.sys.amiga.programmer Subject: Re: Multiple Proportional Gadg's in one "container" Message-ID: <19341@cbmvax.commodore.com> Date: 27 Feb 91 14:54:43 GMT References: <15187@june.cs.washington.edu> Reply-To: ken@cbmvax.commodore.com (Ken Farinsky - CATS) Organization: Commodore, West Chester, PA Lines: 33 In article <15187@june.cs.washington.edu> dylan@june.cs.washington.edu (Dylan McNamee) writes: > >I am writing a DTP program that has a set of drafting tools. Since >it is built on top of Post, I use PostScript objects. Once an object >is on the screen, I want to be able to select it, and have a set of >proportional gadgets show up for the object (the endpoints of a line, >or the control points of a bezier, etc.) to allow the user to manipulate >the object. > >My question is, can I use Proportional gadgets for what I want to do? >If so, how do I get around this container problem? If not, how >should I solve this problem? (I assumed this was a tailor made application >for prop gadgets!) I see "hacking" up a stationary set of gadgets, >and using followmouse as a possibility, but a gross one. If I understand what you are asking and what you are trying to do, the answer is "no". Overlapping proportional gadgets do not make sense as the top one would eat all the mouse events, and it is not clear from a given mouse event on which gadget to operate. I assume that you want to attach "select points" to important positions on the display (such as the ends of lines, etc.) My suggestion would be to use a single, large, boolean gadget with no highlighting, which covers the entire display area. The window should be GADGIMMEDIATE, FOLLOWMOUSE and RELVERIFY. When the user clicks in the gadget, the program will receive a GADGETUP, a bunch of MOUSEMOVEs, followed by either a GADGETUP or a MOUSEBUTTONS with the SELECTUP qualifier. You'll have to do your own calculations as to which point was selected and what the action was. -- -- Ken Farinsky - CATS - (215) 431-9421 - Commodore Business Machines uucp: ken@cbmvax.commodore.com or ...{uunet,rutgers}!cbmvax!ken bix: kfarinsky