Page 1 of 1

ListTree.Insert

Posted: Wed Sep 23, 2015 9:26 pm
by djrikki
Hi Andreas,

Docs:

Code: Select all

Inserts entry$ at the position which is defined with listnode$ and prevnode$. Entry$ contains the name of the entry as string. id$ must be a unique string identifier that you want to use to refer to the newly inserted tree node.
In listnode$ you specify the node whose list is used to insert the entry. This can be the string identifier of a node or one of the following special values:

Root
The root list.
Active
The list of the active node.
If I specify "active" in listnode$ within my code structure I get a DSI error in ____Dispatcher everytime, if I specify "root" the code runs fine, but of course the item I am trying to insert does not end up the right place in my code. I need this listnode$ value when set to "active" to be fixed.

Code: Select all

	mui.DoMethod(menu,"insert","=BAR=", pos,"active","active","active")

Re: ListTree.Insert

Posted: Sat Sep 26, 2015 12:36 pm
by airsoftsoftwair
I can reproduce this here. As one can see in the Listtree.mcc autodocs, "Active" doesn't seem supported at all because it says "n/a" after MUIV_Listtree_Insert_ListNode_Active. Cf. here: http://amiga.sourceforge.net/amigadevhe ... ion=Search

Please file an enhancement request about this for Thore at http://muidev.de

Re: ListTree.Insert

Posted: Sun Sep 27, 2015 10:58 am
by djrikki
Thanks, I will however need your assistance.

http://muidev.de/ticket/257#comment

Re: ListTree.Insert

Posted: Mon Sep 28, 2015 6:09 pm
by airsoftsoftwair
Clarified now.

Re: ListTree.Insert

Posted: Tue Sep 29, 2015 7:55 am
by djrikki
Thanks, crash gone, half way there, just need the implementation now.