I am using a TextField called emailBody that I would like to format into multiple lines for a copy-paste action by user.
My code uses CRLF as follows:
But when I run the program all the text appears on one line:
If I use a label instead of a textfield then I can format it to multiple lines but the user can't copy the text from the label.
I also tried using a text area but then I can't format to multiple lines nor can it be copied.
Using BCText engine also doesn't allow copying of text.
How can I format the text field in my code to write multiple lines?
Any help would be greatly appreciated.
My code uses CRLF as follows:
B4X:
emailBody.Text = "Payment ref:" _
& CRLF & TAB & paymentTextF.Text _
& CRLF & TAB & TAB _
& CRLF & "Email:" _
& CRLF & TAB _
& CRLF & tex _
& CRLF & TAB & TAB _
& CRLF & "DEVICE SERIAL No." _
& CRLF & TAB _
& CRLF & codeTextLbl.Text
But when I run the program all the text appears on one line:
If I use a label instead of a textfield then I can format it to multiple lines but the user can't copy the text from the label.
I also tried using a text area but then I can't format to multiple lines nor can it be copied.
Using BCText engine also doesn't allow copying of text.
How can I format the text field in my code to write multiple lines?
Any help would be greatly appreciated.