Sub OnBeginDrag(Sender: Object; Args: IBeginDragEventArgs);
Begin
//set of operators;
End Sub OnBeginDrag;
Sender. Parameters, that returns the component, generated an event.
Args. Parameter that allows to determine the event parameters.
The OnBeginDrag event occurs for a component, when a user starts to drag an object from the component.
The procedure of dragging should be initialized in the handler of this event for the component that is passed in the Sender parameter. The DoDragDrop method is used for initialization.
Sub OnBeginDrag(Sender: Object; Args: IBeginDragEventArgs);
Begin
Self.DoDragDrop(Sender, DragDropEffects.Move);
End Sub OnBeginDrag;
The procedure of dragging is initialized, when the event of the component for which it was generated, is executed.
See also: