Finding vertical loc of last word of text in a field
Mark Swindell
mswindel at santacruz.k12.ca.us
Tue Jun 7 12:30:14 EDT 2005
Thanks... "the formattedHeight of field x" was exactly what I needed.
Mark
On Jun 7, 2005, at 7:25 AM, Lynch, Jonathan wrote:
> If you want to determine the height of the screen line at a given point
> in the field, you can do something like this:
>
> Put the formattedheight of character X of field Y into myVar
>
>
> If you want to determine the distance from the top of the field to a
> given character, you can do the following:
>
> Put the formattedheight of character 1 to X of field Y into myVar
>
>
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Mark
> Swindell
> Sent: Tuesday, June 07, 2005 10:16 AM
> To: How to use Revolution
> Subject: Finding vertical loc of last word of text in a field
>
> This should be simple, but how do I determine the vertical location
> of the last word of text in a field? Essentially I want to "click
> at last word of field myText" and "put the clickLoc into myVar".
>
> What I want to do is have a vertical slider dynamically match the
> height of text in a field next to it. The field is a fixed height,
> but the text that goes into it isn't.
>
> Thanks,
> Mark
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list