DragDrop: sending dmDragMove added bug #1930

git-svn-id: trunk@9604 -
This commit is contained in:
mattias 2006-07-14 14:09:14 +00:00
parent 0e494526fd
commit 4aa0e5a469

View File

@ -255,9 +255,9 @@ Begin
else
ActiveDrag := dopDock;
// if Target changed, send dmDragLeave to old target and dmDragEnter to new
if TargetControl <> DragObject.DragTarget then
begin
// Target changed => send dmDragLeave to old target and dmDragEnter to new
SendDragOver(dmDragLeave);
if DragObject = nil then Exit;
DragObject.DragTarget := TargetControl;
@ -268,6 +268,11 @@ Begin
DragObject.DragPos := Position;
SendDragOver(dmDragEnter);
if DragObject = nil then Exit;
end else begin
// same target => send dmDragMove
DragObject.DragPos := Position;
SendDragOver(dmDragMove);
if DragObject = nil then Exit;
end;
// update Position