Path: utzoo!attcan!uunet!mcvax!inria!geocub!olva From: olva@geocub.UUCP (Olivier Vayssettes ) Newsgroups: comp.sys.amiga.tech Subject: Re: Ask Mr. Intuition (RELVERIFY woes) Message-ID: <655@geocub.UUCP> Date: 19 Jan 89 12:14:16 GMT References: Organization: Universite de Bordeaux - France Lines: 29 In-reply-to: kevin@uts.amdahl.com's message of 17 Jan 89 16:03:12 GMT > in article 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. 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. >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. If the user releases the mouse button inside the hit box (with RELVERIFY), the message GADGETUP is sent. If the mouse is outside, there is no message but your gadget is no longer selected. I had the same problem as you. Here is my solution, it is not the best I could hope but it works. When the GADGETDOWN message is sent, I wait until: - the SELECTED flag disapears (button released out of gadget) - or the GADGETUP message arrives (button released inside gadget) I think too this system of flags is not complete. Any suggestions for 1.4? Olivier Vayssettes Universite de Bordeaux - France