Y coordinate for a line of text

dunbarx at aol.com dunbarx at aol.com
Wed Nov 13 11:11:29 EST 2019


The selectedLoc will give the loc in window coordinates, not the "local" Y coordinate within the field of interest, which is what I thought you wanted. I cannot imagine what value that would have, since it depends on where the stack window is currently placed.
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 10:12 pm
Subject: Re: Y coordinate for a line of text

Thank you Craig and Paul. Your answers were what I was hoping for. Devin, it turned out that selectedLoc() was the easiest to implement. How did I not know about that function!
Thanks!

Scott Morrow

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



> On Nov 12, 2019, at 8:46 AM, Devin Asay via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> The selectedLoc function may also be helpful.
> 
> 
>> On Nov 12, 2019, at 7:27 AM, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> You may want to look at the Dictionary entry for "measureText"
>> 
>> 
>> On 11/12/2019 1:43 AM, scott--- via use-livecode wrote:
>>> 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
>> 
>> 
>> _______________________________________________
>> 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
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> _______________________________________________
> 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






_______________________________________________
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