pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: How to write multiple lines on one label?
Date Thu, 30 Dec 2010 13:29:24 GMT
The Label component doesn't support carriage returns. However, you can use a non-editable TextArea
to show line breaks:

<TextArea text="abc\ndef" editable="false"/>

On Dec 29, 2010, at 8:19 PM, Le Zhou wrote:

> Hi everyone,
> 
> How to insert new line into the text of a label? 
> 
> In C, or Java text as "abc\ndef" will be shown as follows:
> 
> abc
> def
> 
> but if I have one label like <Label text="abc\ndef"/>, the text shown on this label
is:
> 
> abc\ndef
> 
> Is there any esapce charactor or method to insert a new line into the text on the label,
just the '\n' in C or Java?
> 
> 
> Thanks!
> 


Mime
View raw message