Path: utzoo!attcan!uunet!munnari!otc!metro!kylie!steven From: steven@kylie.oz (Steven Sweeting) Newsgroups: comp.cog-eng Subject: Re: The Window Focus Problem Message-ID: <530@kylie.oz> Date: 22 Dec 88 05:31:34 GMT References: <318@aratar.UUCP> <651@sdics.ucsd.EDU> <1073@arctic.nprdc.arpa> <663@sdics.ucsd.EDU> <14> <88> <19:32:32> <4853@enterprise.UUCP> Reply-To: steven@kylie.oz (Steven Sweeting) Organization: Optech Research Pty Ltd, Sydney AUSTRALIA Lines: 38 >In article johnm@amdahl.uts.amdahl.com (John Murray) writes: > >DE-FOCUS vers 2.0 > > a) reserve a bitplane (ie. the highest) for this purpose. > > b) arrange the colour lookup table so that all colours which have '1' > in the selected bitplane are "full colour" while those colours which > have '0' are shown at some %age of the desired "full" colour. > > c) Draw a FILLED RECT on the selected bitplane (only) over the areas > which have "focus" I implemented this on an Amiga with a slight twist. I used the extra bitplane to give a different background colour to the active window. i.e. Normally white on black, active white on dark red. I quite liked it and would be using it all the time but for some reason after about 5 minutes my free list (Amigas have 1 per machine) was torn to bits. (O/S bug of course :-)) Being one bit-plane and a solid rectangular shape, it was always faster than the screen could refresh. For amigans, I added a dual-playfield to Workbench, which meant my own personalised bit-plane which didn't interfere with Workbench's colour set. >P.S. While I'm posting, does anybody have any ideas on how to reflect that > a given window is "Out of Date" (ie. MAY contain invalid data) ?? Clear the window. :-)/2 _____"I must create a system or be enslaved by another man's"__-Blake Steven Sweeting ACSnet: steven@kylie.oz Optech Research Pty. Ltd. Internet: steven@kylie.oz.au@uunet.uu.net Level 60, MLC Centre, PH +61(2) 235-0255 __ __ Martin Place Sydney 2000 FAX +61(2) 232-5067 /. `v' \ NSW Australia. \_/\+/\_/