OnDragDrop

<< Click to Display Table of Contents >>

Navigation:  TMyCAD > Events >

OnDragDrop

property OnDragDrop: TDragDropEvent;

 

Delphi syntax:

 

type TDragDropEvent = procedure(Sender, Source: TObject; X, Y: Integer) of object;

property OnDragDrop: TDragDropEvent;

 

C++ syntax:

 

typedef void __fastcall (__closure *TDragDropEvent)(System::TObject* Sender, System::TObject* Source, int X, int Y);

__property TDragDropEvent OnDragDrop = {read=FOnDragDrop, write=FOnDragDrop};

 

Description:

 

Occurs when the user drops an object being dragged.

 

Use the OnDragDrop event handler to specify what happens when the user drops an object.

The Source parameter of the OnDragDrop event is the object being dropped, and the Sender

is the control the object is being dropped on. The X and Y parameters are the coordinates of

the mouse positioned over the control.