In the OnDragOver or OnDragDrop events, how to check if the user is dragging nodes of the same Virtual Treeview or of another?
DragType is dtVCL
In the OnDragOver or OnDragDrop events, how to check if the user is dragging nodes of the same Virtual Treeview or of another?
DragType is dtVCL
In both events, you have arguments
SenderandSource.Senderis the component sending the event, that is the tree above which the mouse is flying, the drag receiver. TheSourceis the tree from which the drag is coming.You can cast the Sender or Source to the actual tree you use.