Thanks for your help. But when is the text in the textField actually layouted? I have tried to get the right lines (that I acutally see in the end) after commitProperties and updateDisplayList - but there is always the wrong text in the textField properties. For instance I get 5 lines even if there are only 3 lines displayed in the end.
I have tried to set the width and height of the textField but this also didn't work. Any suggestions? Thanks. Markus --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Subclass, get to the internal TextField and get numLines. There are > other apis on TextField to get line content > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of kramus0 > Sent: Tuesday, October 23, 2007 9:34 AM > To: [email protected] > Subject: [flexcoders] Number of lines in <mx:text/> > > > > This might be fairly simple but how can I find out how many lines a > text contains? If I for instance assign some long text to a text field > it is separated in different lines if the control height is big enough. > > So how can I find out how many lines are there and what their content > is? > > Thanks a lot. > > Markus >

