ListTree Drag and Drop

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

ListTree Drag and Drop

Post by djrikki »

Hello,

I cannot find a way to detect whether a list tree item has been dragged from one location to another and then read from its new location so that I can updated associated userdata of the new position in the listtree. This is kind of too complicated for my liking.

A much better solution for my circumstance is if ListTree.GetEntry() were to return 'Parent' in the table.

Code: Select all

Name
Name of the tree node.
Node
True if the found entry is a node, False if it is a leaf.
ID
String object identifier of this tree node.
MuiID
Internal MUI ID of this tree node. This is the only id you are allowed to pass in the 'node' argument of this method. Passing standard string object identifiers is not allowed by this method. You can use this value for subsequent calls to Listtree.GetEntry in the "node" argument See above for more information and below for an example.
i.e.

Parent
Returns the ID of the parent node.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ListTree Drag and Drop

Post by airsoftsoftwair »

You can get the parent of a node with Listtree.GetEntry() already. Just pass the special value "Parent" in the "position" argument... see here: http://www.hollywood-mal.com/docs/html/ ... Entry.html
Post Reply