On 8/26/13 1:37 AM, planix wrote:
Hi All,

I am looking for ways to determine the approximate number of characters that
will fit into a text field of fixed height and width.

I am guessing there is some way of doing this by working with the line
height, font size, and the height and width of the field. Anyone ever had a
need to do this? Or is there an obvious way?

It used to be hard to do this, but now we have a function that will tell you exactly what you need, thanks to Jan Schenkel's contribution to the engine. See the "pageRanges" property in the dictionary. It gives a list of character ranges that fit the height of the field.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

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

Reply via email to