Table View Event: DropEnter 

Purpose

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

Syntax

The DropEnter event has the syntax:

DropEnter(Object DataObject, Long KeyState, Long * Effect, Short *Handled)

Description

The DropEnter event is fired when the mouse pointer is moved into the client area of a control during a drag-and-drop operation. The DataObject passed to the DropEnter event handler is a SAP Data Object) that was originally filled in the DragSourceFill event. (The source control may be either a Table View or a Table Tree control.)

Your event-handler for DropEnter can call the IsFormatAvailable method (on the DataObject) to determine whether DataObject contains acceptable information or not. If the DataObject is acceptable, set the Effect parameter to one of the following values in order to change the cursor accordingly:

Value

Description

Cursor

DROPEFFECT_NONE = 0

Drop is not possible.

DROPEFFECT_COPY = 1

Drop of copy is possible.

DROPEFFECT_MOVE = 2

Move of DataObject is possible.

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

See your Visual Basic documentation for information on the contents of the KeyState parameter.