TextEntry notify on "Text" doesn't work anymore on Android

Discuss GUI programming with the RapaGUI plugin here
Post Reply
bitRocky
Posts: 120
Joined: Fri Nov 14, 2014 6:01 pm

TextEntry notify on "Text" doesn't work anymore on Android

Post by bitRocky »

Hi,

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
Here is the applet:
http://www.igracki.de/tmp/RapaTextEntryTextNotify.hwa
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TextEntry notify on "Text" doesn't work anymore on Android

Post by airsoftsoftwair »

Fixed now, thanks for reporting!
Post Reply