Haven't checked it, but this looks like it might work for htmlText:
http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.ht\
ml
<http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.h\
tml>

-TH
--- In flexcoders@yahoogroups.com, "turbo_vb" <timh...@...> wrote:
>
> // Plain text gets truncated with a "...". // HTML text simply gets
> clipped, because it is difficult // to skip over the markup and
truncate
> only the non-markup. // But both plain text and HTML text gets an
> automatic tooltip // if the full text isn't visible.-TH
> --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote:
> >
> > I don't think it has a problem with concatenated Strings... that
would
> be very surprising if it did. But I don't think it works properly with
> htmlText.
> >
> > - Gordon
> >
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
> On Behalf Of Matthew
> > Sent: Wednesday, September 16, 2009 3:52 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] truncateToFit() and concatenated Strings
> >
> >
> >
> > Hi -
> >
> > I have a Label with truncateToFit set to true and a maxWidth.
However,
> the htmlText I assign is concatenated a la:
> >
> > ipText = '<b>' +endPointData.ipLabel+ '</b>: ' +
endPointData.ipValue;
> >
> > I've researched online and found that truncateToFit() has problems
> dealing with concatenated Strings; my text does not get truncated.
> >
> > Has anyone found a solution?
> >
> > Thank you for any tips.
> >
>

Reply via email to