Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!uunet!ispd-newsserver!hoffmann From: hoffmann@acl.kodak.com (marty hoffmann) Newsgroups: comp.sys.amiga.programmer Subject: RE: Prop gadgets and FOLLOWMOUSE Message-ID: <1991Feb8.213305.15745@ssd.kodak.com> Date: 8 Feb 91 21:33:05 GMT Sender: news@ssd.kodak.com Distribution: usa Organization: Eastman Kodak Lines: 19 Originator: hoffmann@acl John Lee asked about using FOLLOWMOUSE to track a proportional gadget. The fact that the messages related to FOLLOWMOUSE point to the window and not the gadget is probably not a bug. If I want to update screen information (like a counter) while the user slides a proportional gadget, I create the gadget with GADGIMMEDIATE and RELVERIFY. When I get a GADGETDOWN message for the gadget, I enter a tight loop, reading the pot values directly from the PropInfo structure and updating the screen accordingly. The exit condition for the loop is receiving the corresponding GADGETUP. When I exit the loop, I read the pot values and update the screen one last time. I never use FOLLOWMOUSE in this respect. The above idea works even if the user clicks on the gadget without dragging it. Marty Hoffmann