Path: utzoo!attcan!uunet!mailrus!wuarchive!zaphod.mps.ohio-state.edu!usc!apple!claris!ClarisII!pierre From: pierre@ClarisII.claris.com (Pierre Omidyar) Newsgroups: comp.sys.mac.programmer Subject: Re: when color bits are changed... Message-ID: Date: 11 Jul 90 18:17:09 GMT References: <1839@krafla.rhi.hi.is> Sender: news@claris.com Lines: 24 aries@rhi.hi.is (Reynir Hugason) writes: >>Does anyone know how an application can be noticed for user changing >>the current color bits (I don't know the technical term),eg, from 8bit to 1bit >>from the control panel's monitor? I suppose this is followed by an update >>event of some sort.....or do I have toonstantly check by placing 256 different >>colors and see how meny of them become same color? no...... there got to be >>a better way.... >Well, you could use the run through the device list every now and then, like >once through your event loop, and check if anything has changed there. >--- >Mimir (aries@rhi.hi.is) - Aries, Inc. I think that might be a tad excessive. You only need to check for a color environment change at every update. Devices can't change without your windows getting an update event (supposedly :-)). Pierre -- Pierre Omidyar {ames,apple,portal,sun,voder}!claris!pierre Claris Corporation pierre@claris.com Opinions are mine and not Claris'