Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!nike!lll-crg!lll-lcc!pyramid!amiga!jimm From: jimm@amiga.UUCP (James D. Mackraz) Newsgroups: net.micro.amiga Subject: Re: Gadgets Message-ID: <1477@amiga.amiga.UUCP> Date: Thu, 7-Aug-86 15:42:06 EDT Article-I.D.: amiga.1477 Posted: Thu Aug 7 15:42:06 1986 Date-Received: Sat, 9-Aug-86 06:14:14 EDT References: <1886@ecsvax.UUCP> Reply-To: jimm@homer.UUCP (Jim Mackraz) Distribution: net Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 23 In article <1886@ecsvax.UUCP> ecue@ecsvax.UUCP (Eduardo Cue) writes: > >Has anyone used RemoveGadget() (or RemoveGList in V1.2) and gotten >the correct return value (position of the gadget in the gadget list) ? >I have a requester with 8 gadgets that I am trying to MutualExclude. >It always returns a -1 (gadget not in list) the first time it loops >through. If I just stick it back on (AddGadget() and RefreshGadget()) >then I lose the other seven gadgets as it is put in at the tail of >the list (using -1 as position). After that it does return the right >position from RemoveGadget() (position=3 after my system gadgets).I >checked speechtoy from Commodore and that also returns -1 which is >incorrect. Speechtoy's RemoveGadget() is very simple to check as it >has only 2 gadgets and is not in a requester. Am I misunderstanding >something? I have tried under V1.1 and V1.2. I need to get it working >under V1.2. > Eddy Cue This is proof: Simple Downcoding Can Introduce Bugs. This got fixed in later versions (sort of in the nick of time). It produced the most exciting phenomena in graphicraft. Thanks to RJ for reporting this one, and thank you, too, Eddy. jimm Amiga/Commodore