I Can't Work Out How To Make A Multiline Native Text Field

I thought that if I made the width field larger than the native text field would become multilined, I wrote it like this…

[lua]

–textBoxBriefDescription

local textBoxBriefDescription = native.newTextField( 160, 3450, 300, 160 )

textBoxBriefDescription.size = 20

textBoxBriefDescription:addEventListener( “userInput”, textBoxBriefDescription )

scrollView:insert( textBoxBriefDescription )

[/lua]

Thanks,

Matt.

Hi Matt,

The native.newText Field () is never multi-line. Only the native.newText Box () is so.

http://docs.coronalabs.com/api/library/native/newTextBox.html

Brent

Ah awesome I didn’t realise thanks again Brent.

Matt.

Hi Matt,

The native.newText Field () is never multi-line. Only the native.newText Box () is so.

http://docs.coronalabs.com/api/library/native/newTextBox.html

Brent

Ah awesome I didn’t realise thanks again Brent.

Matt.