I am learning how to program using RapaGUI, and the following problem occurs.
When I compile for Windows, an acknowledge attribute arrives, but when I compile for Android, it does not.
Is it a bug or am I missing something?
Code: Select all
; text entry test
@REQUIRE "RapaGUI", { Link = True}
@FILE 1, "TextEntryTestGUI.xml"
Function p_EventHandler(msg)
Switch(msg.action)
Case "RapaGUI":
Switch(msg.attribute)
Case "Acknowledge":
Switch(msg.id)
Case "message_entry":
text$ = moai.Get("message_entry", "text")
DebugPrint("text entered: \""..text$.."\"")
moai.Set("message_entry", "text", ReverseStr(text$))
EndSwitch
Case "Text":
Beep()
EndSwitch
EndSwitch
EndFunction
moai.CreateApp(ReadBytes(1))
InstallEventHandler({RapaGUI = p_EventHandler})
Repeat
WaitEvent
Forever
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<application>
<window title="TextEntryTest">
<vgroup>
<textentry id="message_entry" notify="acknowledge; text"></textentry>
<hgroup>
<button id="a" disabled = "false">1</button>
<button id="b" disabled = "false">2</button>
<button id="c" disabled = "false">3</button>
<button id="d" disabled = "false">4</button>
</hgroup>
</vgroup>
</window>
</application>