Label's are basically "multiline = false"; at least in 1.5, so I'd assume the same in 2.
 
----- Original Message -----
Sent: Tuesday, November 08, 2005 11:28 AM
Subject: RE: [flexcoders] How to display label 's text on multiple line if it contain one big line

You should use 'htmlText' instead of 'text'

<mx:Label
htmlText="&lt;b&gt;Hello&lt;/b&gt; &lt;br&gt;World"/>
<mx:Text htmlText="&lt;b&gt;Hello&lt;/b&gt; &lt;br&gt;World" />
 
However, when trying this code with Flex 2, only the Text component was adding a line break, not the Label, is this a bug?
You can see that the <b></b> tag is taken in account but not <br>
 
Philippe Maegerman


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of sandip_patil01
Sent: mardi 8 novembre 2005 11:29
To: [email protected]
Subject: [flexcoders] How to display label 's text on multiple line if it contain one big line

Hi All,

I want to display Label's text on multiple line.

Here is my Scenorio,

<mx:Label text="Lorem ipsum dolor sit amet, consectetuer   
adipiscing elit. Cras tincidunt cursus libero.Nam in nunc ac felis
ullamcorper feugiat.:"/>

I want to display this label in output as,

Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Cras tincidunt cursus libero.
Nam in nunc ac felis ullamcorper feugiat.

Can anybody help me out.

Thx in advance,
Sandip patil



------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to