Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!ll-xn!cit-vax!nike!ucbcad!ucbvax!decvax!mcnc!ecsvax!ecue From: ecue@ecsvax.UUCP (Eduardo Cue) Newsgroups: net.micro.amiga Subject: Gadgets Message-ID: <1886@ecsvax.UUCP> Date: Tue, 5-Aug-86 23:22:29 EDT Article-I.D.: ecsvax.1886 Posted: Tue Aug 5 23:22:29 1986 Date-Received: Thu, 7-Aug-86 06:34:15 EDT Distribution: net Organization: UNC Educational Computing Service Lines: 15 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