@emeck
The test_mui.hws listing in your previous post is not what it should be.
Treeview active is one place off
-
- Posts: 475
- Joined: Fri May 15, 2015 5:15 pm
- Location: Waterville, Minnesota USA
Re: Treeview active is one place off
I'm on registered MorphOS using FlowStudio.
Re: Treeview active is one place off
@SamuraiCrow
Right, thank you
test.xml:
test.hws:
Right, thank you
test.xml:
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app_test" base="APPTEST">
<window id="win_test" title="Listtree" muiid="MAIN" notify="closerequest">
<hgroup>
<listtree id="lt_test" notify="active">
<node id="nd1" name="node1"></node>
<node id="nd2" name="node2"></node>
<node id="nd3" name="node3"></node>
</listtree>
</hgroup>
</window>
</application>
Code: Select all
@DISPLAY {Hidden = True}
Function p_EventHandler(msg)
Switch msg.Class
Case "Window":
Switch msg.Attribute
Case "CloseRequest":
End()
EndSwitch
Case "Listtree":
Switch msg.Attribute
Case "Active":
DebugPrint(mui.Get("lt_test", "active"))
EndSwitch
EndSwitch
EndFunction
InstallEventHandler({MUIRoyale = p_EventHandler})
mui.CreateGUI(FileToString("test.xml"))
Repeat
WaitEvent
Forever
PowerBook 5.8 MorphOS 3.18
Mac Mini MorphOS 3.18
Mac Mini MorphOS 3.18
- airsoftsoftwair
- Posts: 5557
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Treeview active is one place off
Ok, looks like a bug. Will be fixed.
- airsoftsoftwair
- Posts: 5557
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Treeview active is one place off
So actually this is a bug in MorphOS MUI. I already reported it to them back in May 2021 but in December 2021 they said they won't fix it for fear of breaking existing apps. So I've now added a workaround specifically for MorphOS to RapaGUI:
Code: Select all
- Change [MorphOS]: Added a workaround for a bug in MorphOS' listtree class that caused notifications on
Listtree.Active to return the wrong items
Re: Treeview active is one place off
Thanks for the fix Andreas
PowerBook 5.8 MorphOS 3.18
Mac Mini MorphOS 3.18
Mac Mini MorphOS 3.18