Table View Event: Drop 

Purpose

Event-notification when a user drops a drag-and-drop object into the target control.

Syntax

The Drop event has the syntax:

Drop(Object DataObject, Long Row, Long Column, Long * Effect, Short *Handled)

Description

The Drop event is fired if the control’s client area is the drop target of a drag-and-drop operation. The parameters Row and Column indicate the location in the table where the DataObject was dropped.

Invoke the IsFormatAvailable and GetData methods (on the DataObject) to retrieve any data stored in the DataObject. This data was originally filled in the DragSourceFill event and can be in any format. (The source control may be either a Table View or a Table Tree control.)

The Effect parameter indicates whether the DataObject should be copied, moved or whether a link to the data source object should be established (see also DropEnterevent). The Effect parameter will subsequently be passed on to the drop source control when the DropComplete event is fired.

Set the Handled parameter to TRUE if you want the control’s default drag and drop handling to be canceled.