I have an application using RapaGUI. It utilizes the Textview class to show a simple log, which has its contents updated whenever something important happens.
The text is updated normally, but the Textview does not scroll to the end when it happens. So if you keep adding text to it, you don't see it unless you manually scroll down...
Here's an extract of the XML definition for the TextView:
Code: Select all
<hgroup><label>Server Log:</label><rectangle/></hgroup>
<textview id="textviewLog">Server Log started</textview>
Code: Select all
Function p_WriteToLog(message)
Local currentLog = moai.Get("textviewLog", "Text")
currentLog = currentLog .. "\r\n" .. message
moai.Set("textviewLog", "Text", currentLog)
EndFunction