Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!pt.cs.cmu.edu!cat.cmu.edu!pane From: pane@cat.cmu.edu (John Pane) Newsgroups: comp.sys.mac.programmer Subject: Re: Does a window have to come up white? Message-ID: <3291@pt.cs.cmu.edu> Date: 13 Oct 88 13:18:25 GMT References: <4412@polya.Stanford.EDU> Sender: netnews@pt.cs.cmu.edu Organization: Carnegie-Mellon University, CS/RI Lines: 33 In article <4412@polya.Stanford.EDU> rothberg@polya.Stanford.EDU (Edward Rothberg) writes: >... >So, what do I do? I tried opening an invisible window, setting >it's background pattern to gray, and then calling ShowWindow(). >Unfortunately, the window comes up white, and doesn't go to >gray until I call an EraseRect(). As you could imagine, it >is extremely distracting to have this flash of white before >things go to gray. Is there any way to gray out all of the >screen except the menu bar without having a flash of white >first and without being extremely MultiFinder unfriendly (i.e. >not using a window)? > >Ed Rothberg >rothberg@polya.stanford.edu See the assembly-language note in the entry for PaintOne, Window Manager, IM Volume 1. The following MPW assembly language works for me: MAIN noPaintWhite PROC EXPORT INCLUDE 'ToolEqu.a' CLR.W PaintWhite RTS END John Pane Department of Computer Science Carnegie Mellon University pane@cs.cmu.edu (412) 268-5884