[flexcoders] How to display label 's text on multiple line if it contain one big line

2005-11-08 Thread sandip_patil01
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





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] How to display label 's text on multiple line if it contain one big line

2005-11-08 Thread Philippe Maegerman





You should use 'htmlText' instead of 
'text'
mx:Label 
htmlText="lt;bgt;Hellolt;/bgt; 
lt;brgt;World"/mx:Text htmlText="lt;bgt;Hellolt;/bgt; 
lt;brgt;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: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
sandip_patil01Sent: mardi 8 novembre 2005 11:29To: 
flexcoders@yahoogroups.comSubject: [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, 
consectetueradipiscing elit. Cras tincidunt cursus libero.Nam in nunc ac 
felis ullamcorper feugiat.Can anybody help me out.Thx in 
advance,Sandip patil





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






--**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.--


Re: [flexcoders] How to display label 's text on multiple line if it contain one big line

2005-11-08 Thread JesterXL





Label's are basically "multiline = false"; at least 
in 1.5, so I'd assume the same in 2.

- Original Message - 
From: Philippe Maegerman 

To: flexcoders@yahoogroups.com 
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;bgt;Hellolt;/bgt; 
lt;brgt;World"/mx:Text htmlText="lt;bgt;Hellolt;/bgt; 
lt;brgt;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: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
sandip_patil01Sent: mardi 8 novembre 2005 11:29To: 
flexcoders@yahoogroups.comSubject: [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, 
consectetueradipiscing 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] How to display label 's text on multiple line if it contain one big line

2005-11-08 Thread Philippe Maegerman





" To create a multiline, noneditable text field, use the 
Text control "
http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0481.html

Btw, the example in the Flex 2 doc doesn't work, it 
looks that everything after a new line is trimmed:
?xml version="1.0" 
encoding="utf-8"?mx:Application 
xmlns:mx="http://www.macromedia.com/2005/mxml" 
backgroundColor="#FF"!-- Simple example to demonstrate the 
Label control --!-- For Flex 2.0, must replace newline with "\n" 
--mx:Script 
![CDATA[ 
 private var htmlData:String = 
"brLabel's htmlText property contains HTML-formatted text." + "\n" + 
 
" If your text string contains" + "\n" 
+ 
" HTML tags, you must wrap it in the CDATA tag." + "\n" + 
 
" The control collapses any white space characters, such as tab" + "\n" + 
 
" and newline characters. For the special characters left angle 
bracket (lt;), " + "\n" 
+ 
" right angle bracket (gt;), or ampersand (amp;), " + "\n" 
+ 
" insert the HTML equivalents of CODEamp;lt;/CODE, 
CODEamp;gt;" + "\n" 
+ 
" /CODE, and CODEamp;amp;/CODE. br "+ 
"\n" 
+ 
" pbNote/b:The CODEhtmlText/CODE 
property ignore CSS style settings for the control, " + "\n" 
+ 
" and instead rely on the HTML tags in the string for formatting." + "\n" 
+ 
" /p 
"; 
 private function 
displayDetails() 
{ 
simpleLabel.text=""; 
simpleLabel.htmlText= 
htmlData; 
} 
 private function 
clearArea() 
{ 
simpleLabel.text="This Label displays Html 
Text"; 
}   
]]/mx:Script mx:Panel title="Label Panel" 
width="640" height="250" 
 mx:Label id="simpleLabel" 
text="This Label displays Html 
Text"/ mx:Button 
id="Display" label="Click to diplay Label's Html Text" 
click="displayDetails();"/ 
mx:Button id="Clear" label="Clear htmlText" 
click="clearArea();"/  
/mx:Panel/mx:Application


Philippe 
Maegerman


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Philippe 
MaegermanSent: mardi 8 novembre 2005 17:29To: 
flexcoders@yahoogroups.comSubject: 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;bgt;Hellolt;/bgt; 
lt;brgt;World"/mx:Text htmlText="lt;bgt;Hellolt;/bgt; 
lt;brgt;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: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
sandip_patil01Sent: mardi 8 novembre 2005 11:29To: 
flexcoders@yahoogroups.comSubject: [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, 
consectetueradipiscing 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.