Article View: net.micro.mac
Article #7324Possible ROM bug in TESetSelect
From: Dan Costin
Date: Thu, 25 Sep 1986 01:57
Date: Thu, 25 Sep 1986 01:57
26 lines
1760 bytes
1760 bytes
I'm having a problem with TextEdit routines that I haven't seen anyone complain about, but some of you might have had at some point. The problem arises on Mac+'s, but not on Mac 512K's !!! (Is it a bug in the ROM? Are there patches?) In my program I have an edit record in a dialog window. I handle all events to the dialog, so when the user points to a spot in the edit box I can select the line he's pointing to (like the minifinder). So what I do is immediately post a mouse-up event and call TEClick. This gives me the location in the text that the user pointed to. I then select the whole line of text that includes the newly created insertion point. When I call TESetSelect, however, the text sometimes scrolls (and sometimes does not - I can't get an extremely reproducible example. It's just that it happens at least 1 in 5 times). Additionally, this only seems to happen when the edit record is larger than about 10K or so (no, it's never larger than 32K). My question is whether anyone has seen this scroll happen, and if anyone knows why TESetSelect would ever want to scroll the screen. While trapping toolbox calls I noticed that there are calls to ScrollRect. Why? Any answers would be appreciated. -dan costin
Technical Details
Message-ID:
<13@wjh12.HARVARD.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!think!husc6!wjh12!ducShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!think!husc6!wjh12!duc From: duc@wjh12.HARVARD.EDU (Dan Costin) Newsgroups: net.micro.mac Subject: Possible ROM bug in TESetSelect Message-ID: <13@wjh12.HARVARD.EDU> Date: Wed, 24-Sep-86 21:57:23 EDT Article-I.D.: wjh12.13 Posted: Wed Sep 24 21:57:23 1986 Date-Received: Thu, 25-Sep-86 03:46:47 EDT Reply-To: duc@wjh12.UUCP (Dan Costin) Distribution: na Organization: Aiken Comp Lab, Harvard Lines: 26