textinput.settings.lines

getTextInput(id).settings.lines( number )

Sets the maximum number of lines for the input box (1 by default). As a special case, you set it to 0 to remove the limit constraint.

Example:

[js highlight=”2″ try=”true”]newTextInput(“haiku”, “hatsu shigure\nsaru mo komino o\nhoshige nari”)
.settings.lines(3)
.print()[/js]

Adds a 3-line input box to the screen containing a haiku (note the \n to insert linebreaks in the text).