Re: Treeview active is one place off
Posted: Thu Sep 29, 2022 3:23 am
@emeck
The test_mui.hws listing in your previous post is not what it should be.
The test_mui.hws listing in your previous post is not what it should be.
The Cross-Platform Multimedia Application Layer
https://forums.hollywood-mal.com/
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
ForeverCode: 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