I noticed that the "frametitle" attribute for a HGroup and ColGroup doesn't work on my Android 10 phone.
The frame is also missing for the ColGroup.
The "accept" attribute for a TextEntry object isn't supported either, I set it to "0123456789,." but all other chars are accepted too.
Is this a bug or a limitation?
On MorphOS this is working like excepted.
Code: Select all
/*
* RapaGUI Android Test
*/
@VERSION 8,0
/*
** This script requires the RapaGUI plugin
*/
@REQUIRE "RapaGUI"
/*
** Information about this app
*/
@APPTITLE "RapaDroidTest"
@OPTIONS {Encoding = #ENCODING_ISO8859_1}
/* Handles all incoming events */
Function p_EventFunc(msg)
Switch msg.action
Case "RapaGUI":
Switch msg.id
Case "winMain":
moai.set("winMain", "open", false);
End(0)
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;">
<ScrollGroup>
<VGroup>
<HGroup>
<button id="butSave">Save</button>
<button id="butLoad">Load</button>
</HGroup>
<VGroup frame="true" frameTitle="Titel1">
<HGroup>
<choice id="choice" notify="active"/>
<button id="butPlus" fixWidth="true">+</button>
<button id="butMinus" fixWidth="true">-</button>
</HGroup>
<ColGroup columns="2">
<Label>Name :</Label> <textentry id="strName" advanceOnCR="true" notify="text"/>
<Label>Nummer:</Label> <textentry id="strNum" accept="0123456789,." advanceOnCR="true" notify="text"/>
</ColGroup>
</VGroup>
</VGroup>
<ColGroup columns="4" frame="true" frametitle="Titel2">
<Label align="center">Lab1</Label>
<Label align="center">Lab2</Label>
<Label align="center">Lab3</Label>
<Label align="center">Lab4</Label>
<text align="center" id="txt1" frame="True"/>
<text align="center" id="txt2" frame="True"/>
<text align="center" id="txt3" frame="True"/>
<text align="center" id="txt4" frame="True"/>
</ColGroup>
</ScrollGroup>
</Window>
</application>
]]
)
EscapeQuit(true)
Repeat WaitEvent() Forever
And there the one from Android: