Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!sdd.hp.com!usc!apple!bionet!ames!ads.com!jtn From: jtn@ADS.COM (John T. Nelson) Newsgroups: comp.sys.mac.programmer Subject: Why doesn't TEUpdate do an update? Message-ID: <4LA^!}+@ads.com> Date: 6 Dec 90 04:06:29 GMT Sender: usenet@ads.com (USENET News) Organization: Advanced Decision Systems, Mtn. View, CA (415) 960-7300 Lines: 29 I seem to be having a problem with TEUpdate. When I call TEUpdate with all of the required parameters, nothing happens. According to Macintosh Revealed (okay, not the authoritative source but that's what I've got), a TEUpdate should automatically do a TECalText and then update my text fields. Well after doing this nothing happens. Something else wierd. I set the teLength field of my edit record to the length of the text in the hText field, but both TECalText and TEUpdate set thee teLength field back to the size of the data area pointed to by the Handle which contains the text hText is pointing to! Because of this all of my scrolling calculations are off because every update resets the text length field! Can't calculate how much to scroll when this happens! Actually there is ONE way to get TEUpdate to work. I call TECaltext explicitly before doing the update, but this has the same problem with reseting the length field. TECalText munges it as badly as TEUpdate. Anyone with wizard experience and the TE package? This one is really difficult to handle. :-) Get it? "Handle." Kyuk kyuk. -- ORGANIZATION: Advanced Decision Systems GEOGRAPHIC: Arlington, VA UUCP: kzin!speaker@mimsy.umd.edu INTERNET: jtn@potomac.ads.com SPOKEN: John T. Nelson PHONE: (703) 243-1611 PROJECT: Macintosh hacking -- "Love the Machine... Hate the Company"