Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy.jpl.nasa.gov!decwrl!shlump.nac.dec.com!mountn.dec.com!ptogpx!shatara From: shatara@memit.enet.dec.com (Chris Shatara) Newsgroups: comp.sys.apple Subject: Re: Elementary (I assume) Window programming question Message-ID: <1369@mountn.dec.com> Date: 17 Feb 90 01:31:19 GMT Sender: news@mountn.dec.com Organization: Digital Equipment Corporation Lines: 29 In article <9002161625.AA26906@tj.tis.com>, lee@TIS.COM (Theodore Lee) writes... >.... >One thought has come to mind -- is there any usual way of updating >windows without completely regenerating them? Suppose you have a big The answer is yes! When you define the window with the window paramater block, you define the wContDefProc (window content definition procedure) as a pointer to your content drawing routine: wContDefProc := @DrawWindow {DrawWindow is the procedure which draws the contents of the window} To make things go faster, you should have your window drawing procedure take into account the visible region of your window (assuming your using scroll bars and not all the window is visible at a time). This takes some thinking but saves a bunch of time. This has worked quite well for me and will do what you want. More sophistication can be added by only dealing with the update region but I haven't found it necessary to do this. Hope this helps...Chris ============================================================================= | Chris Shatara | Internet: shatara@memit.enet.dec.com | | Opinions expressed are | DEC Easynet: memit::shatara | | mine and mine only! | UUCP: ...!decwrl!memit!shatara | =============================================================================