[flexcoders] Re: How to determine the content length in mx:Text?

2006-01-10 Thread svktiilikainen
OK, probably managed to solve this. I can always compare preferredHeight with height and preferredWidth with width, and this seems to work for now. Satu --- In flexcoders@yahoogroups.com, svktiilikainen [EMAIL PROTECTED] wrote: Hi, does anyone know how you can determine the length of

RE: [flexcoders] Re: How to determine the content length in mx:Text?

2006-01-10 Thread Leon Tanner
Hi Satu, Is the question I am asking 'Dynamically increasing size of container to fit all characters' of interest? I haven't got any solutions as yet, but it may be useful... Leon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of svktiilikainen

[flexcoders] Re: How to determine the content length in mx:Text?

2006-01-10 Thread svktiilikainen
Hi, and yes, I already viewed your question which is close to what I was seeking. In my case, I do not need dynamic size increase, just to find out that contents are larger than the component can show. It would also be great to be able to tackle, after setting the text, the contents that CAN

RE: [flexcoders] Re: How to determine the content length in mx:Text?

2006-01-10 Thread Leon Tanner
Hi, I think in any case, we'll need a fixed width font... Could be wrong though... Do you mean you would like to know how to show the clipped contents within the text area/input? Leon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[flexcoders] Re: How to determine the content length in mx:Text?

2006-01-10 Thread svktiilikainen
--- In flexcoders@yahoogroups.com, Leon Tanner [EMAIL PROTECTED] wrote: Hi, I think in any case, we'll need a fixed width font... Could be wrong though... Do you mean you would like to know how to show the clipped contents within the text area/input? Leon Hi, mx:Text component can and

[flexcoders] Re: How to determine the content length in mx:Text?

2006-01-10 Thread svktiilikainen
Thanks, Doug, for the tip. This function will be useful. Satu --- In flexcoders@yahoogroups.com, douglowder [EMAIL PROTECTED] wrote: Hi Satu, Have you taken a look at TextFormat.getTextExtent() function? It sounds like that may be what you want. Documentation on the TextFormat class