In a program who I'm writing I need to use of the choice gadget. I tried, without any success, to dynamically insert items into it. I have also tried updating the plugin to the latest version, but nothing changed. Instead, inserting items statically (inside the XML code that defines the GUI) I haven't problems. The tests were made under Hollywood 7.1, and IcarosLive 2.2.8. This is a sample code who shows the problem:
Code: Select all
@VERSION 7,1
@REQUIRE "RapaGUI"
moai.CreateApp(FileToString("DemoInsert.xml"))
moai.DoMethod("Scelta", "insert", "Bottom", "First")
moai.DoMethod("Scelta", "insert", "Bottom", "Second")
moai.DoMethod("Scelta", "insert", "Bottom", "Third")
Wait(5,#SECONDS)
End
With this XML for the application:
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="DemoInsert">
<window title="DemoInsert" id="dummy" width="450">
<vgroup>
<label align="left">Choose element</label>
<choice id="Scelta">
</choice>
</vgroup>
</window>
</application>
This program creates a little window with a choice gadget empty. At runtime, three items are inserted into choice gadget and after 5 seconds program quits. But, under AROS, choice gadget remains empty.
I'm wrong somewhere or it's a bug (?)