Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site uw-beaver
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!mhuxj!houxm!vax135!cornell!uw-beaver!info-mac
From: info-mac@uw-beaver
Newsgroups: fa.info-mac
Subject: TEUpdate
Message-ID: <197@uw-beaver>
Date: Thu, 13-Dec-84 09:29:48 EST
Article-I.D.: uw-beave.197
Posted: Thu Dec 13 09:29:48 1984
Date-Received: Fri, 14-Dec-84 06:14:25 EST
Sender: daemon@uw-beaver
Organization: U of Washington Computer Science
Lines: 23

From: kato.SV@XEROX.ARPA

There seems to be something I don't understand about TEUpdate (TECalc,
et al).
When I resize a window to be larger, I call TECalc to recalculate
linestart. I call TEUpdate when I get an update event but I also put one
after the SizeWindow. What I expected to happen was for the text to be
re-formatted to the new larger window and the old text erased. The
former happens but not the latter, unless you either put a window in
front of the text window then take it away or hit a key. The old text
then gets erased. What am I doing wrong? It seems to me that TEKey must
be calling some routine to redraw the window. I'd like to call that
instead of putting in the code that FILE.TEXT has to do the same thing.

I'd also like to know if my understanding of InvalRect is correct. It
seems to me that this tells QuickDraw that whatever is in this rectangle
needs to be re-drawn. Any subsequent drawing in the rectangle is not
drawn until an update event occurs. Does InvalRect erase the rectangle,
then draw what has accumulated or is the stuff just drawn over what's
there?

(Super SIGH!)
Kato.sv@Xerox.ARPA