Path: utzoo!attcan!uunet!lll-winken!ames!amdahl!kevin From: kevin@uts.amdahl.com (Kevin Clague) Newsgroups: comp.sys.amiga.tech Subject: Ask Mr. Intuition (RELVERIFY woes) Keywords: Intuition gadgets RELVERIFY GADGETUP frustrated Message-ID: Date: 17 Jan 89 16:03:12 GMT Organization: Amdahl Corporation, Sunnyvale, CA 94086 Lines: 41 [ I'm a line-eater and I'm O.K., I eat mail at night and I sleep all day ] I'm having problems getting potentiometer gadgets to work the way I would like. Intuition provides GADGIMMEDIATE flags for GADGETDOWN IDCMP events, FOLLOWMOUSE flag for MOUSEMOVE events, and RELVERIFY for GADGETUP events. The problem I have is that RELVERIFY gadgets only provide GADGETUP events if the mouse is over the gadget at the time of left mouse button release. I would like to have a gadget flag that guarantees GADGETUP events if you get a GADGETDOWN event. I have an operation I would like to do everytime the user uses a particular potentiometer gadget. The operation is too time consuming to do as the potentiometer is sliding, so I'd like to defer the operation until the user let's go of the potentiometer gadget. The results of the operation depend on the value of the slider at the time of it's release. Because of a RELVERIFY gadget's operation I can't be sure that I'll get the GADGETUP event, and then can't perform the desired operation. In my application, it is as important to know that the user has stopped using the gadget as it is that they started using it. I can simulate my own slider using MOUSEBUTTONS and MOUSEMOVES, but then I have to slide the knob and clear the container and all that other stuff. Is there some other flag tha I don't know about that will do what I want? If not then is it reasonable to add a new flag for 1.4? Kevin -- UUCP: kevin@uts.amdahl.com or: {sun,decwrl,hplabs,pyramid,seismo,oliveb}!amdahl!kevin DDD: 408-737-5481 USPS: Amdahl Corp. M/S 249, 1250 E. Arques Av, Sunnyvale, CA 94086 [ Any thoughts or opinions which may or may not have been expressed ] [ herein are my own. They are not necessarily those of my employer. ]