Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!uunet!snorkelwacker!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph Swick) Newsgroups: comp.windows.x Subject: Re: Determining cursor location in Text widget Message-ID: <9008091259.AA19808@lyre.MIT.EDU> Date: 9 Aug 90 12:59:50 GMT References: <1990Aug8.195716.4691@msuinfo.cl.msu.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 9 The position of the cursor (in characters) is available as the resource XtNinsertPosition and via the public routine XawTextGetInsertionPoint(). None of the Text public interfaces talk in units of lines, which I suspect is what you'd prefer. It sounds to me as though your problem could be solved by retrieving the XtNfont, XtNtopMargin and XtNheight resources and doing a simple calculation.