Article View: comp.sys.amiga.tech
Article #11045Re: Ask Mr. Intuition (RELVERIFY woes)
From: Olivier Vayssettes
Date: Thu, 19 Jan 1989 12:14
Date: Thu, 19 Jan 1989 12:14
29 lines
1776 bytes
1776 bytes
> in article <efCt2b0Yfv1010zgXWk@amdahl.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. 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
Technical Details
Message-ID:
<655@geocub.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!inria!geocub!olvaReferences:
<efCt2b0Yfv1010zgXWk@amdahl.uts.amdahl.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <efCt2b0Yfv1010zgXWk@amdahl.uts.amdahl.com> Organization: Universite de Bordeaux - France Lines: 29 In-reply-to: kevin@uts.amdahl.com's message of 17 Jan 89 16:03:12 GMT