Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!pasteur!ucbvax!ji.Berkeley.EDU!carlton From: carlton@ji.Berkeley.EDU (Mike Carlton) Newsgroups: comp.sys.mac.programmer Subject: Re: edit window cursor question Message-ID: <23136@ucbvax.BERKELEY.EDU> Date: 27 Feb 88 00:49:06 GMT References: <2856@orstcs.CS.ORST.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: carlton@ji.Berkeley.EDU.UUCP (Mike Carlton) Organization: University of California, Berkeley Lines: 14 In article <2856@orstcs.CS.ORST.EDU> budd@mist.cs.orst.edu (Tim Budd) writes: ... >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. ... It sounds like you forgot to convert the mouse coordinates to local coordinates. TEClick requires a point in local coordinates while the mouse down event is in global coordinates. Try including a LocalToGlobal(&event->where) before your TEClick call. best of luck, mike