Page 1 of 1
How to send variables and display in Rapa-GUI Treeview
Posted: Fri Dec 25, 2020 4:28 pm
by seventhwonder
Dear all
How can I send variables to Rapa-GUI treeview ?
I am reading 16 different variables (integer numbers) from serial.device and I want to display them in Rapa-GUI treeview
How can I do it ? Should it add it in .xml ?
Thanks for your help in advance.
Re: How to send variables and display in Rapa-GUI Treeview
Posted: Mon Dec 28, 2020 10:18 pm
by airsoftsoftwair
Just use
Treeview.InsertNode to insert them into the treeview, e.g.
Code: Select all
moai.DoMethod("tv", "InsertNode", "foo", "root", "head", "Hello World")
The code above adds a new node named "Hello World" into the treeview using the ID "tv".
Re: How to send variables and display in Rapa-GUI Treeview
Posted: Sun Jan 24, 2021 8:03 pm
by seventhwonder
@airsoftsoftwair
Thanks..
Now I am trying to update these Nodes 25 times a second (but it is only displaying first read value)
I am using SetInterval to do this..
I already got this working on MUI Royale with string.gadget
The app I wrote is (AmigaNG diagnostic tool - shows sensor values from MCU)
http://os4depot.net/index.php?function= ... atcher.lha
How do I update RapaGUI Treeview nodes dynamically ?
Re: How to send variables and display in Rapa-GUI Treeview
Posted: Wed Jan 27, 2021 9:06 pm
by msu
I think a TreeView is not necessarily suitable for displaying measured values 25 per second.
But a short sample code from you would be helpful.
Re: How to send variables and display in Rapa-GUI Treeview
Posted: Thu Jan 28, 2021 9:31 am
by SamuraiCrow
After looking at your OS4 Depot link, it looks like your sensor uses an AREXX script. That will likely not work under Linux so there might be no point in switching from MUI Royale to RapaGUI anyway. Both use MUI and NListTree for their tree gadgets under OS4 and MorphOS.
Re: How to send variables and display in Rapa-GUI Treeview
Posted: Thu Jan 28, 2021 6:02 pm
by msu
@SamuraiCrow:
I'm not sure if I understood you correctly, but RapaGUI on Linux uses GTK.
Re: How to send variables and display in Rapa-GUI Treeview
Posted: Thu Jan 28, 2021 9:00 pm
by SamuraiCrow
msu wrote: ↑Thu Jan 28, 2021 6:02 pm
@SamuraiCrow:
I'm not sure if I understood you correctly, but RapaGUI on Linux uses GTK.
The point is that AREXX only works on AmigaOS, MorphOS and maybe AROS. All of those work from both MUI Royale and RapaGUI. AREXX doesn't work on Linux so the fact that it uses GTK+ is irrelevant. The AREXX script runs the sensor on the X5000 but not on Linux.
Re: How to send variables and display in Rapa-GUI Treeview
Posted: Thu Jan 28, 2021 10:42 pm
by airsoftsoftwair
seventhwonder wrote: ↑Sun Jan 24, 2021 8:03 pm
How do I update RapaGUI Treeview nodes dynamically ?
To change a treeview node name, just set the
Treeviewnode.Name attribute on the item.