Page 1 of 1

ListTree.Exchange and ListTree.Move

Posted: Mon Sep 07, 2015 10:07 pm
by djrikki
Hello,

Did these two methods get updated in relation to images at the same time as .Insert and .Rename?

Struggling to get .Exchange to work at the moment.

Re: ListTree.Exchange and ListTree.Move

Posted: Mon Sep 07, 2015 10:36 pm
by airsoftsoftwair
Listtree.Exchange is currently broken in MUI. Listtree.Move should work.

Re: ListTree.Exchange and ListTree.Move

Posted: Mon Sep 07, 2015 11:03 pm
by djrikki
Hmm, I am trying to do some Move to Top, Move to Bottom, Move Up and Move Down, I suppose Listtree.Move would make more a little more sense, I just saw the Up and Down special values of the .Exchange method which is very similar to the Previous and Next of the ListView.Exchange.

I am not sure the 'Up' and 'Down' reads correctly in the documentation it was all a tad confusing, but if this method is currently broken in MUI that would explain why its impossible to observe.

Re: ListTree.Exchange and ListTree.Move

Posted: Mon Sep 07, 2015 11:13 pm
by djrikki
Well I have Move to Top and Move to Bottom both working.

So that leaves Move Up and Move Down to do - now luckily for me the Leaf IDs are sequential in the context I am working in so I can readily identify them - this might not always be the case. I will cross that bridge when or if it comes to it.

Edit: Ha the theory is a little harder to put into practice, supplying values into nlistnode$, ntreenode$ is not producing a result, nothing is moving :S