Search found 400 matches

by SamuraiCrow
Sun Feb 21, 2021 2:42 am
Forum: RapaGUI
Topic: Possible bug in Listview & weight
Replies: 10
Views: 661

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: 661

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: 661

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: 661

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" >...
by SamuraiCrow
Sat Feb 20, 2021 8:42 pm
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 20
Views: 2735

Re: Advanced RapaGUI techniques

I've added the choice gadget. This is the first gadget that has had events other than "OK' and "Cancel" buttons needing special care. To handle this I've planned ahead by allowing the local handler() function to override the default p_handler() procedure. Function choice.handler(msg, len) Local suff...
by SamuraiCrow
Sat Feb 20, 2021 8:16 pm
Forum: RapaGUI
Topic: Feature request: ListView column widths as percentage
Replies: 3
Views: 387

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...
by SamuraiCrow
Thu Feb 18, 2021 5:04 pm
Forum: RapaGUI
Topic: Feature request: ListView column widths as percentage
Replies: 3
Views: 387

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...
by SamuraiCrow
Sun Feb 07, 2021 2:52 pm
Forum: Newbie questions
Topic: Generic For variables
Replies: 5
Views: 630

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.

Code: Select all

For key, value In Pairs(var)
has "key" and "value" internally only.

Code: Select all

For Local count=1 to 5
has "count" internally.
by SamuraiCrow
Fri Jan 29, 2021 10:22 pm
Forum: Hollywood bugs
Topic: RapaGUI: Can't find "next" item in treeview in MorphOS
Replies: 2
Views: 559

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...