realbasic-nug
[Top] [All Lists]

Coordinates of selstart

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Coordinates of selstart
From: Richard Gross <richardgross at tampabay dot rr dot com>
Date: Sat, 29 Jan 2005 19:19:35 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BE2197FE dot 67E9%rovo at l4a dot info> <a06200705be21cdd0a4cb at [10 dot 10 dot 13 dot 4]>
How can I get at the coordinates of the beginning of the selected text in a multiline edit field, relative to the edit field?

I am trying to pop up a small window near the location of the selected text (kind of a long story, but they are tabbing through a block of text, jumping from fill-in to fill-in, and the popup should appear near the fill-in they are currently editing). Note that they have not clicked there, so I can't use mouse coordinates.

The closest I have come is using lineNumAtCharPos by passing selstart to it, but of course this varies with font size, etc.

I guess I am looking for XYAtCharPos, if such existed. Any suggestions?

Thanks.

Rich
Tampa, FL

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>