
Anyway, here's my code, at least it shows the radio widget with this code:
XML:
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<window title="Rogue Football Cardgame" id="window" width="400">
<vgroup>
<vspace height="2"/>
<pageview id = "mainpages">
<hgroup title="Volume">
<colgroup columns="2">
<label>Sounds:</label>
<slider min="0" max="100" level="50"/>
<label>Music:</label>
<slider min="0" max="100" level="50"/>
</colgroup>
</hgroup>
<vgroup title="Test" id="test">
<hgroup frametitle="Yo" id="testgroup" frame="true">
<rectangle/>
</hgroup>
</vgroup>
</pageview>
<hgroup>
<button id="button_start">START</button>
</hgroup>
</vgroup>
</window>
</application>
Code: Select all
@VERSION 9,0
@OPTIONS {DPIAware = True}
@REQUIRE "RapaGUI"
@FILE 1, "RapaGuiPart.xml"
moai.CreateApp(ReadString(1))
amigaresolutions = {}
RadioStart$ = [[
<radio id="printer">
<item>HP Deskjet</item>
<item>NEC P6</item>
<item>Okimate 20</item>
</radio>
]]
moai.CreateObject(RadioStart$, "testgroup")
moai.DoMethod("testgroup", "initchange")
moai.DoMethod("testgroup", "append", "printer")
moai.DoMethod("testgroup", "exitchange")
Repeat
WaitEvent
Forever