Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!oliveb!epimass!csi!jwhitnel From: jwhitnel@csi.UUCP (Jerry Whitnell) Newsgroups: comp.sys.mac.programmer Subject: Re: edit window cursor question Message-ID: <1436@csib.csi.UUCP> Date: 29 Feb 88 18:39:46 GMT References: <2856@orstcs.CS.ORST.EDU> Reply-To: jwhitnel@csib.UUCP (Jerry Whitnell) Organization: Communications Solutions Inc., San Jose, Ca Lines: 28 In article <2856@orstcs.CS.ORST.EDU> budd@mist.cs.orst.edu (Tim Budd) writes: >In trying to port Little Smalltalk to the Mac, I have encountered the >following problem; and need a MacExpert to tell me what I am doing wrong. Good, I thought about doing it myself, but you are a much better choice. If you need a beta site, let me know. > >I can put up an edit window with no problem. However, when I create >and activate another window, then when I return to the edit window >my cursor does not work correctly. Specifically, with each mouse click it >selects all the text from the current position to the end of the window. Without seeing the code, it's hard to guess, but here are some things to check: 1) Are you calling TEActivate and TEDeactive on the appropiate activate events? 2) Do you call GlobalToLocal(&pt), where pt is the point you will pass to TEClick? TEClick wants its points in local coordinates. 3) Is the size of the first argument to TEClick correct(a point, I think)? I'd check these things first. I can't think of anything else that might do it. > >--tim budd Jerry Whitnell Been through Hell? Communication Solutions, Inc. What did you bring back for me? - A. Brilliant