Y coordinate for a line of text

dunbarx at aol.com dunbarx at aol.com
Tue Nov 12 09:04:11 EST 2019


Hi.
Assuming you have a field 1 with several lines of text in it, and have set the textHeight of that field, then in a button script somewhere;
on mouseUpanswer the textHeight of fld 1 * lineOffset(yourText,fld 1) + the top of fld 1end mouseUp
Craig

-----Original Message-----
From: scott--- via use-livecode <use-livecode at lists.runrev.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: scott at elementarysoftware.com <scott at elementarysoftware.com>
Sent: Tue, Nov 12, 2019 1:45 am
Subject: Y coordinate for a line of text

I’m needing to know the coordinate (Y is the tricky one) for a line of text. I’m not do a very good job at calculating it. I think I remember a newish LC command or function that achieved this but I can’t locate it in the dictionary. Am I imagining?

--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web      https://elementarysoftware.com/
email    scott at elementarysoftware.com
booth    1-800-615-0867

------------------------------------------------------








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



More information about the use-livecode mailing list