Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!rutgers!ucla-cs!zen!ucbvax!hplabs!well!ewhac
From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab)
Newsgroups: comp.sys.amiga
Subject: Re: smart refresh
Message-ID: <3601@well.UUCP>
Date: Wed, 22-Jul-87 15:37:01 EDT
Article-I.D.: well.3601
Posted: Wed Jul 22 15:37:01 1987
Date-Received: Fri, 24-Jul-87 07:06:59 EDT
References: <1010@gryphon.CTS.COM> <2389@ames.UUCP>
Reply-To: ewhac@well.UUCP (Leo (My cape has a watch) Schwab)
Distribution: na
Organization: Lt. Col. Oliver North, Overseas Shipping and Receiving
Lines: 25
Summary: Read the RKM chapter on Layers

In article <2389@ames.UUCP> mike@ames.UUCP (Mike Smithwick) writes:
>[insert generic witty line eater joke here]
>
>I need to dynamically change a smart-refresh window to simple-refresh and
>back again. This seemed simple enough, by merely toggling on/off the 
>SIMPLE_REFRESH flag in the window flag variable. No go sez the machine.
>That is, the window was a smart as ever and refused to be lobotimized.
>
	Eat some M&M's, then have a look at the Layers chapter in the RKM.

	You will discover that the "intelligence" level of an Intuition
window is really controlled by the layers.library.  You can change your
layer's IQ by twiddling the LAYERSMART flag in the window's layer structure.
You should also twiddle the SIMPLE_REFRESH flag in the window structure as
well to keep things consistent.

	Note that there is probably some voodoo associated with this bit
twiddling.  I did it some time ago when I was trying to hack the workbench
backdrop window.  I can dig up my old work if you like (it's no trouble).

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Leo L. Schwab -- The Guy in The Cape	ihnp4!ptsfa -\
 \_ -_	 Bike shrunk by popular demand,	      dual ---> !{well,unicom}!ewhac
O----^o	 But it's still the only way to fly.  hplabs / (pronounced "AE-wack")
"Work FOR?  I don't work FOR anybody!  I'm just having fun."  -- The Doctor