1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
// -----------------
if Sender.Dragging and (Sender.DropTarget=Node) then
Begin
var NodeRect := Node.DisplayRect(false); // textonly=false because we want the full rectangle
pen.mode:=pmXor;
moveto(0,NodeRect.Bottom-3); LineTo(NodeRect.right,NodeRect.Bottom-3);
moveto(0,NodeRect.Bottom-2); LineTo(5,NodeRect.Bottom-2);
moveto(NodeRect.right-5,NodeRect.Bottom-2); LineTo(NodeRect.right,NodeRect.Bottom-2);
moveto(0,NodeRect.Bottom-1); LineTo(3,NodeRect.Bottom-1);
moveto(NodeRect.right-5,NodeRect.Bottom-1); LineTo(NodeRect.right,NodeRect.Bottom-1);
moveto(0,NodeRect.Bottom); LineTo(3,NodeRect.Bottom);
moveto(NodeRect.right-5,NodeRect.Bottom); LineTo(NodeRect.right,NodeRect.Bottom);
pen.mode:=pmCopy;
End; |
Partager