Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think!mintaka!mit-eddie!rutgers!netnews.upenn.edu!grad2.cis.upenn.edu!ranjit From: ranjit@grad2.cis.upenn.edu (Ranjit Bhatnagar) Newsgroups: comp.sys.amiga.tech Subject: Layers and Windows Message-ID: <21458@netnews.upenn.edu> Date: 7 Mar 90 21:41:54 GMT References: <6fw=02eZ8fOn01@amdahl.uts.amdahl.com> <22751@pasteur.Berkeley.EDU> Sender: news@netnews.upenn.edu Reply-To: ranjit@grad2.cis.upenn.edu.UUCP (Ranjit Bhatnagar) Organization: University of Pennsylvania Lines: 40 How come when I create and later destroy a layer in a screen's bitmap, user data are properly refreshed but system data sometimes aren't? To get more concrete, if my layer overlaps the screen's title bar, then when the layer is Deleted, it leaves a hole in the title bar until I do something to explicitly refresh the title, such as pressing the right button. The contents of the screen itself are refreshed just fine. Similarly, some (but not all) windows refresh their contents, but not their frames. Also, is it legal to LockLayers and then unlock one _particular_ layer, if I want to have all but one layer locked? I then lock it again before UnlockLayers, just to feel safe. The code is something like this (this is just a sketch): info = LayerInfo for current screen LockLayerInfo(info) mylayer = CreateUpfrontLayer(info, blah blah blah, SIMPLEREFRESH, null) UnlockLayerInfo(info) LockLayers(info) UnlockLayer(mylayer) ... do things in my layer while all other layers are locked... LockLayer(mylayer) UnlockLayers(info) LockLayerInfo(info) DeleteLayer(mylayer) UnlockLayerInfo(info) at this point, a bite has been taken out of the screen title bar, etc. An unrelated question for the same project: can anybody think of ANY common application whose window font is proportional? Maybe Notepad, but I refuse to defile my chip RAM with that abomination. - Ranjit "Trespassers w" ranjit@eniac.seas.upenn.edu mailrus!eecae!netnews!eniac!... Forward in all directions!