To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
When a dragged object is the one from the TreeView, it can be dropped to the destination object as a sibling or a child node. The GetLocationParent() method is used to distinguish between these two options. The method returns an integer value identifying the index of the target node parent. The index of the target node itself is returned by the GetLocationRow() method. If the indices returned by the both methods are the same, the dropped object should be appended to the target node as a child.
When the value returned by GetLocationParent() identifies the parent node to where the dragged object is to be added as a child; the value returned by GetLocationRow() specifies the sibling node. If these values are different, the dropped node should be inserted before the node, found by GetLocationRow().
These methods can be used in ON DROP and in ON DRAG_OVER blocks to cancel the drop in case the returned indices do not meet special conditions.