This was of help to me a while back...

http://thanksmister.com/index.php/archive/flex-truncating-html-text




--- In flexcoders@yahoogroups.com, "luvfotography" <ygro...@...> wrote:
>
> If the Label control size is smaller than its text, the text of the Label 
> control is truncated using a localizable string, such as "...".
> 
> However if you set the text with htmlText, then you do not get the '...' How 
> can I set the text of the Label field  with htmlText and still get the '...' 
> if my text is too long?
> 
> ex: 
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
>       <mx:Label x="37" y="35" text="label field" width="193" id="myLabel"/>
>       <mx:Button x="37" y="91" label="change Label Text"  click="myLabel.text 
> = myTextInput.text"/>
>       <mx:Button x="184" y="91" label="change Label with HtmlText"  
> click="myLabel.htmlText = myTextInput.text"/>
>       <mx:TextInput id="myTextInput" text="This is a really long label text 
> it should truncate in periods" x="37" y="61"/>
> </mx:Application>
>


Reply via email to