Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!cbmvax!eric From: eric@cbmvax.UUCP (Eric Cotton) Newsgroups: comp.sys.amiga.tech Subject: Re: Gadget.MutualExclude? Message-ID: <6314@cbmvax.UUCP> Date: 16 Mar 89 21:49:57 GMT References: <2858@kalliope.rice.edu> Reply-To: eric@cbmvax.UUCP (Eric Cotton) Organization: Commodore Technology, West Chester, PA Lines: 26 In article <2858@kalliope.rice.edu> phil@rice.edu (William LeFebvre) writes: >Okay..... I REELY want to have two gadgets that are mutually exclusive. >That is, selecting one forces the other to automatically be unselected. I >see the field "MutualExclude" in the struct Gadget. Does Intuition pay >attention to it? I tried to follow the sketchy documentation in the >include file, but to no avail. Does this thing actually work, or am I >going to have to do it myself? If it does work, then how? No, Intuition does not manage mutual exclusion of gadgets [correct me if I am wrong JimM!]. Refer to pp. 59-60 of the V1.2 Enhancer Manual for a description of how you can do it yourself. In brief, though, you RemoveGadget(), set or clear (as appropriate) the gadgets SELECTED flag, AddGadget() it back, and then RefreshGList (or equivalent). >What I'm after is something identical to what happens in preferences, >especially the printer preferences. You have a series of gadgets >representing mutually exclusive choices. Selecting one automatically >unselectes any of the others that might be selected. I know I can do this >by hand, but I don't want to unless I have to. Ack! Believe me, you *don't* wanna know what Preferences is doing... -- Eric Cotton Commodore-Amiga (215) 431-9100 1200 Wilson Drive {uunet|pyramid|rutgers}!cbmvax!eric West Chester, PA 19380 "I don't find this stuff amusing anymore."