I've got textFields using html text that I need to get an accurate way
of finding the line count...I got it working when I knew the size of
the font attributed to that textField, but with one field it can have
multiple formats.
It's been a long tired weekend of sleepless coding, so I'm going to
var lineHeight:Number, linesCount:Number;
var tf:TextField = yourTextField;
with (tf) {
autoSize = true;
multiline = true;
wordWrap = true;
html = true;
htmlText = some text at 1 line;
}
lineHeight = tf.textHeight;
tf.htmlText = some html text . text ;
linesCount =
textfield.maxscroll - [the number of lines it's displaying]
-josh
On Sep 11, 2006, at 8:28a, grimmwerks wrote:
I've got textFields using html text that I need to get an accurate way
of finding the line count...I got it working when I knew the size of
the font attributed to that textField, but
3 matches
Mail list logo