Search found 396 matches

by SamuraiCrow
Mon Mar 22, 2021 3:26 am
Forum: Announcements
Topic: Hollywood 9.0: Sugarcane released!
Replies: 35
Views: 3418

Re: Hollywood 9.0: Sugarcane released!

Upgrade order sent!
by SamuraiCrow
Wed Feb 24, 2021 11:28 pm
Forum: General programming
Topic: possibility to have two same installeventhandlers at same time?
Replies: 3
Views: 673

Re: possibility to have two same installeventhandlers at same time?

After some thought, the 2 table method is essentially a hash-set implementation. Here it is: global HandleKey={} HandleKey["functions"]={} HandleKey["set"]={} HandleKey["last"]=0 Function HandleKey:InstallHandler(func) Local current=self.last self.last=self.last+1 self.functions[current]=func self.s...
by SamuraiCrow
Wed Feb 24, 2021 10:53 pm
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 20
Views: 2667

Re: Advanced RapaGUI techniques

Now for a major update: The first draft of the macro substitution engine! /* ** Template macro library ** ** By Samuel D. Crow */ ; NOTE: ALL TEMPLATE DEFINITIONS MUST BE INCLUDED AFTER THIS FILE Global template={} Global template["macro$"]={} /* ** Pattern Pipeline ** ** Does all pattern substitut...
by SamuraiCrow
Wed Feb 24, 2021 9:41 pm
Forum: General programming
Topic: possibility to have two same installeventhandlers at same time?
Replies: 3
Views: 673

Re: possibility to have two same installeventhandlers at same time?

Is there any other way to achieve this, except by coding it myself in way of that I refer onkeydown to go to a function which takes care that all my "onkeydown" events are being executed? I mean, I could do something like: InstallEventHandler({onkeydown = onkeydownfuncs function onkeydownfuncs() fo...
by SamuraiCrow
Wed Feb 24, 2021 9:15 pm
Forum: RapaGUI
Topic: How to handle a SPACE accelerator?
Replies: 4
Views: 408

Re: How to handle a SPACE accelerator?

Have you considered a separate event handler for OnKeyDown events independently from RapaGUI?
by SamuraiCrow
Mon Feb 22, 2021 3:42 am
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 20
Views: 2667

Re: Advanced RapaGUI techniques

Once I started adding the radio gadget, I noticed some of my changes had broken the save routines. In this case the table of strings in both the choice gadget and radio gadget couldn't be saved because the save routine was only doing a shallow copy of the outer table. The solution required a small a...
by SamuraiCrow
Sun Feb 21, 2021 2:42 am
Forum: RapaGUI
Topic: Possible bug in Listview & weight
Replies: 10
Views: 645

Re: Possible bug in Listview & weight

In MorphOS, the Colgroup did support weights. It looked identical to the first try. It was the same layout as AmigaOS 4.x.
by SamuraiCrow
Sat Feb 20, 2021 11:00 pm
Forum: RapaGUI
Topic: Possible bug in Listview & weight
Replies: 10
Views: 645

Re: Possible bug in Listview & weight

I tried to set the unweighted elements to 100 but it didn't make a difference at all to the Linux version. It appears that the weights on the wxWidgets versions of RapaGUI have the groups off-kilter.
by SamuraiCrow
Sat Feb 20, 2021 10:38 pm
Forum: RapaGUI
Topic: Possible bug in Listview & weight
Replies: 10
Views: 645

Re: Possible bug in Listview & weight

Before with original XML: https://github.com/SamuraiCrow/HollywoodDocumentation/blob/main/RapaGUI-test1.png?raw=true After with Colgroup XML: https://github.com/SamuraiCrow/HollywoodDocumentation/blob/main/RapaGUI-test2.png?raw=true Tested on GTK+ on Linux. (MUI 5 on MorphOS was the same before and ...
by SamuraiCrow
Sat Feb 20, 2021 10:02 pm
Forum: RapaGUI
Topic: Possible bug in Listview & weight
Replies: 10
Views: 645

Re: Possible bug in Listview & weight

One workaround would be to use a Colgroup to align gadgets vertically from each other. I'm not sure if you can weight the center column twice as wide though. <?xml version="1.0" encoding="iso-8859-1"?> <application id="app"> <window id="mainWindow" title="SonosController" width="1000" height="300" >...