#1 2016-08-08 05:10:00

reg4app
Member
Registered: 2016-05-16
Posts: 147

How to use Line Breaks in Push buttons and Textarea controls

how can i set Button Text value a line break yikes ?
just showing like this:      a word
                              anorther word


Joshua.Y

Offline

#2 2016-08-08 12:38:07

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: How to use Line Breaks in Push buttons and Textarea controls

Hello Joshua,

Try with the "<br />" HTML tag. For example, in runtime:

SetVar "[Button1.Text]" "Hello <br /> world!" "String"

Hope this can be useful for you!

Offline

#3 2016-08-09 02:37:26

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: How to use Line Breaks in Push buttons and Textarea controls

OH,this can work!:)


Joshua.Y

Offline

#4 2016-08-11 20:00:39

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: How to use Line Breaks in Push buttons and Textarea controls

Hello Joshua,

reg4app wrote:

OH,this can work!:)

That's nice!

Offline

#5 2016-10-26 10:37:57

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: How to use Line Breaks in Push buttons and Textarea controls

continue to this question
in Textarea control ,how can i get a line break?


Joshua.Y

Offline

#6 2016-10-26 10:50:37

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: How to use Line Breaks in Push buttons and Textarea controls

Hello Joshua,

Yes; in this case we must use the "\n" metacharacter in a way like the below one:

SetVar "[Textarea1.Value]" "This is a line break \n for the Textarea." "String"

Hope this can be useful for you!

Offline

#7 2016-10-26 11:02:16

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: How to use Line Breaks in Push buttons and Textarea controls

OH,yeah
Problem solved!

smile and smile


Joshua.Y

Offline

#8 2016-10-26 11:05:31

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: How to use Line Breaks in Push buttons and Textarea controls

reg4app wrote:

OH,yeah
Problem solved!

smile and smile

Nice one!

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.