Choice gadget under AROS

Discuss GUI programming with the RapaGUI plugin here
Post Reply
domenikov
Posts: 12
Joined: Fri May 19, 2017 10:27 pm

Choice gadget under AROS

Post by domenikov »

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 (?)
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Choice gadget under AROS

Post by airsoftsoftwair »

I think this is an AROS limitation. The documentation of Choice.Insert says:
Note that on AmigaOS and compatibles this feature is only available on MUI 4.0 or higher.
So it's very likely that the MUI on AROS doesn't have this functionality yet. Complain about it to the AROS guys :)
Post Reply