You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Bilbosax <wa...@comcast.net> on 2021/02/11 20:54:06 UTC
Jewel Label - Newline/Linebreak
I have a label that I need to put a linebreak in. I cant figure out how to
get a newline in my Jewel Label. In the text property for the label, I have
tried:
label.text = "first name<br/>last name"
label.text = "first name\nlast name"
label.text = "first name\rlast name"
label.text = "first name\n\rlast name"
label.text = "first name
last name"
label.text = "first name last name"
None of these have worked. What is the secret?
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Jewel Label - Newline/Linebreak
Posted by Greg Dove <gr...@gmail.com>.
I don't know for sure, but there is a multiline property on Jewel Label,
which is false by default. Did you try setting that true?
On Fri, Feb 12, 2021 at 9:54 AM Bilbosax <wa...@comcast.net> wrote:
> I have a label that I need to put a linebreak in. I cant figure out how to
> get a newline in my Jewel Label. In the text property for the label, I
> have
> tried:
>
> label.text = "first name<br/>last name"
> label.text = "first name\nlast name"
> label.text = "first name\rlast name"
> label.text = "first name\n\rlast name"
> label.text = "first name
last name"
> label.text = "first name last name"
>
>
> None of these have worked. What is the secret?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
RE: [EXTERNAL] Jewel Label - Newline/Linebreak
Posted by Bilbosax <wa...@comcast.net>.
Perfect Brian, thanks! This is exactly what I was looking for. Just as an
observation, I could get your label.html example to work, but not the
label.text example
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
RE: [EXTERNAL] Jewel Label - Newline/Linebreak
Posted by Brian Raymes <br...@teotech.com>.
The following will work (notice html instead of text):
label.html ="first name<br/>last name"
The following will also work:
label.text = "first name{'\n'}last name"
-----Original Message-----
From: Bilbosax <wa...@comcast.net>
Sent: Thursday, February 11, 2021 12:54 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Jewel Label - Newline/Linebreak
I have a label that I need to put a linebreak in. I cant figure out how to get a newline in my Jewel Label. In the text property for the label, I have
tried:
label.text = "first name<br/>last name"
label.text = "first name\nlast name"
label.text = "first name\rlast name"
label.text = "first name\n\rlast name"
label.text = "first name
last name"
label.text = "first name last name"
None of these have worked. What is the secret?
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/