[comp.sys.amiga.tech] Layers and Windows

ranjit@grad2.cis.upenn.edu (Ranjit Bhatnagar) (03/08/90)

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!

djh@dragon.metaphor.com (Dallas J. Hodgson) (03/10/90)

Prowrite 2.5 for the Amiga support proportional window fonts.
+----------------------------------------------------------------------------+
| Dallas J. Hodgson               |     "This here's the wattle,             |
| Metaphor Computer Systems       |      It's the emblem of our land.        |
| Mountain View, Ca.              |      You can put it in a bottle,         |
| USENET : djh@metaphor.com       |      You can hold it in your hand."      |
+============================================================================+
| "The views I express are my own, and not necessarily those of my employer" |
+----------------------------------------------------------------------------+