Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!uunet!zephyr.ens.tek.com!uw-beaver!cornell!johnhlee From: johnhlee@fulla.cs.cornell.edu (John H. Lee) Newsgroups: comp.sys.amiga.programmer Subject: Prop gadgets and FOLLOWMOUSE Summary: MOUSEMOVE's IAddress gone astray? Message-ID: <51792@cornell.UUCP> Date: 8 Feb 91 18:31:56 GMT Sender: nobody@cornell.UUCP Reply-To: johnhlee@cs.cornell.edu (John H. Lee) Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 21 Followup-To: 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. The GADGETDOWN and GADGETUP IDCMP messages have the IAddress set properly, however. I don't have REPORTMOUSE set for the window, so I'm not getting MOUSEMOVEs for the window itself. This wouldn't be a problem except when trying to use multiple prop gadgets with active tracking (i.e., update an on-screen value as a prop gadget is "thumbed".) Currently, I set a variable when I receive a GADGETDOWN on a prop gadget, use the variable instead of the IAddress field for MOUSEMOVES, and reset the variable on a GADGETUP for the prop gadget. It works, but not as elegant. Am I doing something wrong, or is this an old bug? ------------------------------------------------------------------------------- The DiskDoctor threatens the crew! Next time on AmigaDos: The Next Generation. John Lee Internet: johnhlee@cs.cornell.edu The above opinions of those of the user, and not of this machine.