I think that you are correct!   That was the lead that I was missing.

Thanks!
  Mike

On 11/18/14 2:04 PM, Scott Rossi wrote:
If I understand what you¹re asking, I believe you can use the
formattedRect for this.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 11/18/14, 10:23 AM, "Michael Doub" <[email protected]> wrote:

A related question to positioning a line within a field, is positioning
a chunk within a line that is wrapped.   I am stumped on this one and it
may need engine support.   I don't know how to figure out the scroll
value of something in the middle of a wrapped line.   In the thread
discussing scroll positioning within a wrapped field we see how to find
the top.   I figured out how to get the bottom using James Hales
approach. (code in the forum and MasterLibrary)

Does anyone see a way to calculate the scroll position of a chunk within
a line that is wrapped?

Regards
   Mike



On 11/18/14 1:01 PM, Richard Gaskin wrote:
Michael Doub wrote:

I don't think the solution works because of a bug in livecode where
spacebefore and spaceafter are not taken into account.
Thanks - I wasn't aware of that bug, but was able to find it:
<http://quality.runrev.com/show_bug.cgi?id=11688>

Hopefully it'll get addressed for 6.7.1 and 7.0.1, since it's needed
for a wide range of tasks relating to text metrics.


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to