Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!cbmehq!cbmfra!swinjm!forgeas From: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Newsgroups: comp.sys.amiga.programmer Subject: Re: Prop gadgets and FOLLOWMOUSE Message-ID: <18a9ae90.ARN0d71@swinjm.UUCP> Date: 11 Feb 91 01:04:16 GMT References: <51792@cornell.UUCP> Reply-To: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Followup-To: comp.sys.amiga.programmer Organization: The Software Winery Lines: 21 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. Yes this is problem for me too. You could test your list of props looking for the SELECTED flag: if (FlagIsSet( Prop1->Flags, SELECTED )) ...; else if (FlagIsSet( Prop2->Flags, SELECTED )) ...; ... This works for me. Jean-Michel -- \___/ Jean-Michel Forgeas \-/ cbmvax!cbmehq!cbmfra!swinjm!forgeas | The Software Winery -^- And, where is the universe ?