On Apr 2, 2013, at 7:52 AM, Michael Doub wrote: > I must be missing something. selectedLoc gets you the upper left corner. > FormattedHeight will allow computation of the lowerLeft. How do you get the > right side?
[Slaps forehead.] Now I remember what I was trying to remember in my first post. Try using the formattedRect of the chunk of text. That will even take into account the scroll of the field. Devin > On Apr 1, 2013, at 4:57 PM, Richard Gaskin <ambassa...@fourthworld.com> wrote: > >> Curt Ford wrote: >> >>> My client's project has long text fields, in which are a number of separate >>> lines that, in the original Word files, had boxes around them. The "box" >>> style in LiveCode is too tight around the text for their taste, so I've >>> been creating graphic rectangles and positioning them by hand. >>> >>> An issue has come up where wrapping is inconsistent on different systems >>> running XP; when the wrapping changes, the positioning of the graphics over >>> the text is wrong. >>> >>> Is there a way to position the graphics in relation to a given line in a >>> field on the fly? >> >> A combination of the selectedLoc and formattedHeight functions should allow >> you to derive a rect. >> >> -- >> Richard Gaskin >> Fourth World >> LiveCode training and consulting: http://www.fourthworld.com >> Webzine for LiveCode developers: http://www.LiveCodeJournal.com >> Follow me on Twitter: http://twitter.com/FourthWorldSys >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode