-d- @quark
why i can not have a empty line by [enter]
-e- so, now i want understand your question?
what you want to do?
save the content of the edited text area to a file?
( basic feature of a text editor )
or add some more text from any string into the text area
++ at the end?
++ at cursor position? ( that one might be tricky )
I am not sure where [enter] is. I suspect you are trying to get 2 blank lines together. GTextArea does not support that, one single blank lines allowed.
hm, ( again play your example: G4P EditTextControls Textarea 1 )
i can type text and [enter] go next line.
[enter] again does not create ONE empty line.
[space][enter] creates a line what looks like a empty line.
if i have many lines and go up with cursor and delete the content of a line
a empty line can be created ( so it is allowed by your textarea field ).
if i try to create a second empty line this way ( deleting the content of a existing line after a empty line ) the line is removed, like you suggested.
when i am at the end of a not empty line and press [enter] a following empty line is created.
sorry @quark, i think a [enter] at the beginning of a line should be allowed ( to create ONE empty line ).
It cannot be completely empty. If you try and delete all the test it will put in a single space
You cannot have two adjacent lines with no text i.e. zero length. You can use lines with one or more spaces to represent blanks lines.
It is not designed to hold massive amounts of text.
The reason for these limitations is due to the fact I used a number of Java classes so that some or all of the text can be styled i.e. bold, italic, font, font size, foreground colour etc. To do this I used a number of Java classes that were never designed to be used directly.