ListTree.Exchange and ListTree.Move

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

ListTree.Exchange and ListTree.Move

Post 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.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ListTree.Exchange and ListTree.Move

Post by airsoftsoftwair »

Listtree.Exchange is currently broken in MUI. Listtree.Move should work.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListTree.Exchange and ListTree.Move

Post 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.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListTree.Exchange and ListTree.Move

Post 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
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply