| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Coordinates of selstart |
| From: | "Joseph J. Strout" <joe at realsoftware dot com> |
| Date: | Sat, 29 Jan 2005 19:20:23 -0600 |
| 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]> <a66da17ad9507e1e9e5b40e6c3b9a0ba at tampabay dot rr dot com> |
At 7:19 PM -0500 1/29/05, Richard Gross wrote: How can I get at the coordinates of the beginning of the selected text in a multiline edit field, relative to the edit field? Hmm... I think you'd have to use CharPosAtXY in a loop to find the closest Y (iterating over lines using CharPosAtLineNum to find the start of each line), and then another loop to find the closest X. Best, - Joe -- REAL World 2005 - The REALbasic User Conference March 23-25, 2005, Austin, Texas <http://www.realsoftware.com/realworld> _______________________________________________ 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Numeric editfield, Joseph J. Strout |
|---|---|
| Next by Date: | Re: Displaying jpgs in a canvas, Joseph J. Strout |
| Previous by Thread: | Coordinates of selstart, Richard Gross |
| Next by Thread: | Re: Displaying jpgs in a canvas, Ronald Vogelaar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |