Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!tut.cis.ohio-state.edu!ucbvax!VAXB.ACS.UNT.EDU!DWAYNE From: DWAYNE@VAXB.ACS.UNT.EDU Newsgroups: comp.sys.apple Subject: Files, Windows, & Orca/Pascal Message-ID: <8902080513.aa00573@SMOKE.BRL.MIL> Date: 7 Feb 89 18:48:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 17 I am in the middle of delving into the mysteries of the IIgs toolbox and more exactly windows and their controls. I read a file into a linked list so that it is available in memory. Then in the window content update procedure I dump the file into the window a line at a time using QDII's DrawText call. THe problem is that the whole file gets redrawn whenever the window controls are accessed or the window is resized. For large files this can be a pain. Does anyone out there know of somw cute algorithm to redraw only that part of the file that will be displayed? It would certainly speed things up. I'm writing this in Orca/Pascal, but if you have any code at all (TML Basic, TML Pascal, or Assembley Language) I'd like to take a look at it. I know that there has to be a better way. thanks, dwayne ----------- BitNet : dwayne@untvaxa ALPE : Dwayne Spr