field calculations

Ivers, Doug E Doug_Ivers at lord.com
Tue May 21 09:24:11 EDT 2002


What is the proper or best way of calculating the number of lines that are in the visible part of a field?  In other words, if I put "1" &cr& "2" &cr& "3"... etc. into the field, what would be the highest number visible in a non-scrolling field?

A first guess would be the (height of the field)/(textHeight of the field), but what about margins and borders?

What about ((height of the field)-(topMargin of the field)-(bottomMargin of the field))/(textHeight of the field)?


-- D

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020521/75210fc3/attachment.html>


More information about the use-livecode mailing list