Page 1 of 1


Posted: Mon Oct 09, 2006 18:45
by bitten
How I make to discover how many lines the one text multiLineEditbox goes to have given its size x and y?


Posted: Tue Oct 10, 2006 10:09
by lindquist
the Font class has members to calculate text extents.

getHorzExtent and getFormattedHorzExtent and getFormattedLineCount IIRC. Better check the API ref...

0.5 gives you access to getFormattedLines as well which you could then just do a size() call on the know the number of lines. HTH