Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!nsc!amdahl!kevin From: kevin@uts.amdahl.com (Kevin Clague) Newsgroups: comp.sys.amiga.tech Subject: Re: Ask Mr. Intuition (RELVERIFY woes) Keywords: Intuition gadgets RELVERIFY GADGETUP frustrated Message-ID: Date: 18 Jan 89 18:38:44 GMT References: <5718@cbmvax.UUCP> Reply-To: kevin@amdahl.uts.amdahl.com (Kevin Clague) Organization: Amdahl Corporation, Sunnyvale, CA 94086 Lines: 54 In article <5718@cbmvax.UUCP> jesup@cbmvax.UUCP (Randell Jesup) writes: >In article kevin@uts.amdahl.com (Kevin Clague) writes: >> >>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. >>RELVERIFY gadgets only provide GADGETUP events if the mouse is > > Prop gadgets appear to produce gadgetups with relverify, even if the >mouse is off the gadget. Relverify really only applies to boolean gadgets >(in terms of the verify function). Maybe jimm will expand on this. > Duh... I knew that. Silly me.... >-- >Randell Jesup, Commodore Engineering {uunet|rutgers|allegra}!cbmvax!jesup So I misstated and oversimplified my problem. I hate it when that happens. I'll try again. Potentiometer gadgets do not allow you to render into the container (except for the knob). I would like to render into the container. So I want to simulate a slider with gadget down, mousemoves, gadget up. I can easily do it with MOUSEBUTTONS, but then I need to check to see that the mouse cursor is inside my simulated gadget (I also have to ignore mousebuttons when I push other gadgets...) Instead if I used a gadget then the "is it inside the container" check would be handled by Inutition. If I had a GADRELEASE flag, then it would be really simple to simulate a potentiometer gadget just by setting the GADGIMMEDIATE|FOLLOWMOUSE|GADGRELEASE flags. The only thing that would be lacking would be unit-less potentiometer values (the value from 0-1 in scaled in format). If (in 1.4) there was a GADGRELEASE flag that was usable for BOOLEAN gadgets then it would be much simpler to simulate sliders, and we could avoid using MOUSEBUTTONS (and we wouldn't have to add code to ignore them when we don't want them.) I hope this clarifies things. 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. ]