being notified if the user changes text in a TextEntry object, seems to not work anymore on Android with the Hollywood v9 Player.
Here is a short example, type something in the "Input" field, it should duplicate the text in the "Output" field, but nothing gets inserted there.
Code: Select all
/*
* RapaGUI Android Test
*/
@VERSION 9,0
@REQUIRE "RapaGUI"
@APPTITLE "RapaTextEntryTextNotify"
@OPTIONS {Encoding = #ENCODING_ISO8859_1}
/* Handles all incoming events */
Function p_EventFunc(msg)
Switch msg.action
Case "RapaGUI":
Switch msg.id
Case "winMain":
Switch msg.attribute
Case "CloseRequest":
moai.set("winMain", "open", false);
End(0)
EndSwitch
Case "strInput":
DebugPrint("input: "..msg.TriggerValue)
moai.set("strOutput", "Text", msg.TriggerValue)
EndSwitch
EndSwitch
EndFunction
InstallEventHandler({RapaGUI = p_EventFunc})
moai.CreateApp([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<Window id="winMain" title="Test" notify="closeRequest;" >
<ColGroup columns="2">
<Label>Input:</Label>
<textentry id="strInput" notify="text"/>
<Label>Output:</Label>
<Textentry id="strOutput" />
</ColGroup>
</Window>
</application>
]])
EscapeQuit(true)
Repeat WaitEvent() Forever
http://www.igracki.de/tmp/RapaTextEntryTextNotify.hwa