Finding vertical loc of last word of text in a field
Lynch, Jonathan
bnz2 at cdc.gov
Tue Jun 7 10:25:42 EDT 2005
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
More information about the use-livecode
mailing list