Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!sun-barr!oliveb!amiga!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.tech Subject: Re: Mutual Exclude Gadgets Message-ID: <9161@cbmvax.commodore.com> Date: 28 Dec 89 19:51:48 GMT References: <5802@sdcc6.ucsd.edu> <8912272145.AA23577@en.ecn.purdue.edu> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 61 In article <8912272145.AA23577@en.ecn.purdue.edu> bevis@EE.ECN.PURDUE.EDU (Jeff Bevis) writes: >In article <5802@sdcc6.ucsd.edu>, 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 > >It doesn't function! (ie, it's not implemented) >That's a shame, too, because writing exclusion code over and over is a >real nuisance. The latest AmigaMail has an article on the correct supportable way of handling mutual exclusion of gadgets. AmigaMail is available by subscription and to our registered developers. For information on AmigaMail or on becoming a registered developer, send a stamped (45 cents) self-addressed envelope to: CATS - Information 1200 Wilson Drive West Chester, PA 19380 >By the way, how does one preset and adjust TOGGLESELECT GADGHCOMP type >gadgets? I always get weird results with them... Any suggestions, like >RefreshGList()'ing in some creative fashion? To quote from the Enhancer 1.2 Manual, which some (not all) of you have: "Understand that Boolean gadget rendered with Borders (instead of Images) or highlighted with surrounding boxes (GADGHBOX) are handled very simply by Intuition, and that complicated transitions done by your program (and in some cases the user's own actions) can get the rendering out of phase." To summarize, if you want to preset and adjust TOGGLESELECT gadgets they should be rendered with Images (that exactly match the select box in size and position) and highlighted by complementing (GADGHCOMP) or by an alternate image of the same size and position. As well, the gadgets must be GADGIMMEDIATE. In other words, you cannot do proper programmatic control of gadgets rendered with borders and text, and highlighted by complementing. If you should happen to find some combination of steps that appears to work, heed this warning: ***You may be counting on side-effects that we don't promise to maintain in future releases of the operating system***. >+--------------------------------+--------------------------------------------+ >| Jeff Bevis | "But I don't like spam!" | >| bevis@en.ecn.purdue.edu | Give me Amiga or nothing at all. | >+--------------------------------+--------------------------------------------+ -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.cbm.commodore.com My opinions do not necessarily represent the opinions of my employer. "A friend of mine is into Voodoo Acupuncture. You don't have to go. You'll just be walking down the street and ..... oooohhh, that's much better..." - Steven Wright