Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!hcobb From: hcobb@walt.cc.utexas.edu (Henry J. Cobb) Newsgroups: comp.sys.amiga.tech Subject: Re: Mutual Exclude Gadgets Keywords: Gadgets Message-ID: <22900@ut-emx.UUCP> Date: 31 Dec 89 03:24:31 GMT References: <953@lpami.wimsey.bc.ca> <9173@cbmvax.commodore.com> Sender: news@ut-emx.UUCP Reply-To: hcobb@walt.cc.utexas.edu (Henry J. Cobb) Organization: The University of Texas at Austin, Austin, Texas Lines: 14 Mr Sinz is right, the documented procedure would not work. Why not use the field as a bit-map, whenever a gadget becomes selected any other gadgets with which it has a matching bit set, is deselected. Example: Gadget A has bits 2 & 3 set Gadget B has bits 4 & 6 set Gadget C has bits 3 & 6 set A and B will not deactivate each other but C will exclude both. If a gadget has no bits set it neither excludes nor is excluded by any other gadget. Henry J. Cobb hcobb@walt.cc.utexas.edu