Search found 385 matches
- Sat Feb 20, 2021 8:16 pm
- Forum: RapaGUI
- Topic: Feature request: ListView column widths as percentage
- Replies: 3
- Views: 156
Re: Feature request: ListView column widths as percentage
Thank you for your answer. A view more questions though (sorry if they seem silly, I'm still a bit of a newbie): What do you mean by "proportions"? That's not some column property to set, is it? Instead of writing it as 33% multiply the gadget width by .33 for example, and set the column width usin...
- Thu Feb 18, 2021 5:04 pm
- Forum: RapaGUI
- Topic: Feature request: ListView column widths as percentage
- Replies: 3
- Views: 156
Re: Feature request: ListView column widths as percentage
Using proportions allows this to be done without changing the plugin at all. The width of the listview can be obtained from the getter visibility of the area parent class width and then setting the listview column widths proportionately. Doing it manually is better in some cases because a floating p...
- Sun Feb 07, 2021 2:52 pm
- Forum: Newbie questions
- Topic: Generic For variables
- Replies: 5
- Views: 283
Re: Generic For variables
The iterator form of the For loop has internal variables. The other form only does if you add the "local" keyword.
has "key" and "value" internally only.
has "count" internally.
Code: Select all
For key, value In Pairs(var)
Code: Select all
For Local count=1 to 5
- Sat Feb 06, 2021 4:51 am
- Forum: Hollywood bugs
- Topic: RapaGUI: Can't find "next" item in treeview in MorphOS
- Replies: 2
- Views: 306
Re: RapaGUI: Can't find "next" item in treeview in MorphOS
Thanks for the update.
- Fri Jan 29, 2021 10:22 pm
- Forum: Hollywood bugs
- Topic: RapaGUI: Can't find "next" item in treeview in MorphOS
- Replies: 2
- Views: 306
RapaGUI: Can't find "next" item in treeview in MorphOS
Running the following code under MorphOS 3.15: /*Tree test*/ @REQUIRE "RapaGUI" Function TableDump(t) For k, v In Pairs(t) debugPrint("key="..k) Next EndFunction Function Test() Local found1, table1=moai.DoMethod("tv", "GetEntry", "Active", "Previous") Local found2, table2=moai.DoMethod("tv", "GetEn...
- Thu Jan 28, 2021 9:00 pm
- Forum: Newbie questions
- Topic: How to send variables and display in Rapa-GUI Treeview
- Replies: 7
- Views: 530
Re: How to send variables and display in Rapa-GUI Treeview
@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 scri...
- Thu Jan 28, 2021 9:31 am
- Forum: Newbie questions
- Topic: How to send variables and display in Rapa-GUI Treeview
- Replies: 7
- Views: 530
Re: How to send variables and display in Rapa-GUI Treeview
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.
- Wed Jan 27, 2021 11:41 pm
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1578
Re: Advanced RapaGUI techniques
Just as I was posting my previous code snippet I noticed a major bug! When moving a node down, it had to be an empty node to work correctly! In order to make it work right I will need to implement clipboard functionality to cut and paste groups containing items. Also, as I was contemplating adding l...
- Wed Jan 27, 2021 10:03 pm
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1578
Re: Advanced RapaGUI techniques
I got the "move up" and "move down" buttons activated already and it only took a few hours. The centerpiece of it is the swapEntries function: Function p_swapEntries(first, second, parent) ; swap entries Local content=treeitems[parent.UID].contents Local slot1=treeitems[first.UID].slot Local slot2=t...
- Wed Jan 27, 2021 9:31 pm
- Forum: RapaGUI
- Topic: radio.title only I
- Replies: 2
- Views: 145
Re: radio.title only I
You are correct that the only option you have is to do text substitution on the XML before you initialize the GUI. There are text-based substitution commands that may help the situation. Look at PatternReplaceStr() and ReplaceStr() to do so. I hope to add a template feature into RapaEdit someday to ...