Posted on 1997-10-31
I am attempting to enhance the drag and drop behaviour
of a data-aware version of a TreeView component using
Delphi 3.0. I need to update a dataset field with the new
absoluteindex of a node when it is dragged from one location in the tree to another. I am overriding the 'DoEndDrag' procedure but any attempts to access the
'Target' parameter in order to determine the index of the node receiving the dragged node raises an EAccessViolation exception.
procedure MyTree.DoEndDrag(Target: TObject; X, Y: Integer);
ShowMessage((Target as TObject).ClassName);
Any assistance would be greatly appreciated.