Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!swrinde!ucsd!dog.ee.lbl.gov!pasteur!ucbvax!andrew.cmu.edu!gk5g+ From: gk5g+@andrew.cmu.edu (Gary Keim) Newsgroups: comp.soft-sys.andrew Subject: Re: Fetching mouse click Message-ID: Date: 17 Oct 90 17:14:25 GMT References: <9010162216.AA24847@triumph-adler.de> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 26 Excerpts from misc: 16-Oct-90 Fetching mouse click Hans Kleist-Retzow@trium (677) > In which class (we think > that it should be a ..._Hit method) and method will the cursor be set, > when the user clicks on a position in the text. I'm not exactly sure what you asking. If you're asking, "Where in the text object does the cursor position get set when a user clicks on some text?", the answer is textv.c:textview__Hit(). There is some code at the top of that method that sets the cursor: if (action == view_LeftDown) { mark_SetPos(self->dot, newLeftPos); mark_SetLength(self->dot, newRightPos - newLeftPos); If you're asking, "After a hit in some text, how can we get the current cursor {location,length}?, the answer is: textview_GetDotPosition(textv); textview_GetDotLength(textv); Gary Keim ATK Group