I’m creating an app that receives messages over a tcp connection. At the moment i’m printing all the messages received to the corona console.
Id like to be able to display each message that was received as a new line at the bottom of a text box without clearing the previous lines of text. Similar to the corona console so the user can scroll back through previous received messages.
I’ve added a defaultBox = native.newTextBox to my app and on every message received i update the text value in the text box with defaultBox.text = messageRecived, however this clears any previous text strings.
Any ideas on how to add a new line to the text box without clearing previous entries to give me a scrolling history of received messages?