Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!iuvax!purdue!haven!decuac!shlump.nac.dec.com!wjg.enet.dec.com!guineau From: guineau@wjg.enet.dec.com Newsgroups: comp.sys.amiga.tech Subject: Re: Mutual Exclude Gadgets Keywords: Gadgets Message-ID: <7052@shlump.nac.dec.com> Date: 21 Dec 89 13:51:20 GMT References: <5802@sdcc6.ucsd.edu> Sender: newsdaemon@shlump.nac.dec.com Reply-To: guineau@wjg.enet.dec.com () Organization: Digital Equipment Corporation, Marlboro, Mass. Lines: 22 Eat This in article pa2027@sdcc13.ucsd.edu (Stupendous Man) writes: > Could someone please explain (perhaps with a bit of Lattice C) how > to use the mutual exclude flag in the Gadget structure? The Sybex > books I have give VERY brief explanations and I'm fairly new to > software development. Thanks alot, I don't believe Mutual Exclude was ever implemented in Intuition, so you have to do it yourself. Mutual Exclude just means only 1 of a set of n gadgets can be "on" at a time. Clicking on a gadget in this set enables it and disables the rest. To implement Mutual Exclude, you can still use the data structures provided by Intuition. When you get an event (IntuiMessage) for a gadget with the MutualExclude bit set, just go through it's exclusion mask and "generate events" for the gadgets it excludes. By "generate events" I mean do whatever necessary to make the other gadgets think they're "off". John