Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: Prop gadgets and FOLLOWMOUSE Message-ID: <18856@cbmvax.commodore.com> Date: 12 Feb 91 15:47:28 GMT References: <51792@cornell.UUCP> <18a9ae90.ARN0d71@swinjm.UUCP> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 32 In article <18a9ae90.ARN0d71@swinjm.UUCP> forgeas@swinjm.UUCP (Jean-Michel Forgeas) writes: >In article <51792@cornell.UUCP>, John H. Lee writes: > >> I've been having a problem with prop gadgets and FOLLOWMOUSE. It seems >> that the MOUSEMOVE IDCMP messages I get have the IAddress set to the >> window containing the gadget rather than the gadget itself. This is a bug that many people reported, (including myself, right when I arrived at Commodore). There are two reasons why it won't change: 1. Risk of breaking some software that expects to find the window-pointer there. 2. Because it's easy to get around the problem, which you MUST do to run under 1.x and 2.0x. > >Yes this is problem for me too. >You could test your list of props looking for the SELECTED flag: It's more efficient to remember the pointer to the last gadget you saw a GADGETDOWN for. >This works for me. > > Jean-Michel Peter -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "Oh, PIN-compatible! I thought you wanted me to make it IN-compatible!"