Entering content frame

Syntax documentationadd Locate the document in its SAP Library structure

This method adds a new description to the drag and drop behavior. You can store any number of descriptions, but you may not add the same description more than once.

CALL METHOD dragdrop->add
     EXPORTING flavor         = flavor
               dragsrc        = dragsrc
               droptarget     = droptarget
               effect         = effect
               effect_in_ctrl = effect_in_ctrl
     EXCEPTIONS already_defined  = 1
                obj_invalid      = 2.

Parameters

Description

flavor

Description of the new flavor

dragsrc

' X ': The description is a drag source

droptarget

' X ': The description is a drop target

effect

Drop effect of the description between different custom controls. The following effects are supported:

dragdrop->copy : Appearance of the mouse when using drag and drop to copy.

dragdrop->move : Appearance of the mouse when using drag and drop to move.

dragdrop->none : Drag and drop is not possible.

effect_in_ctrl

Drop effect of the description in the same custom control. The following effects are supported:

dragdrop->copy : Appearance of the mouse when using drag and drop to copy.

dragdrop->move : Appearance of the mouse when using drag and drop to move.

dragdrop->none : Drag and drop is not possible.

dragdrop->use_default_effect : Uses the same effect specified in the effect parameter.

Exceptions

Description

already_defined

The specified flavor has already been defined.

obj_invalid

The object has already been destroyed using the method destroy.

Note

If you use the copy and move effects when you define the flavor, the system uses the move effect when the user drags an object normally, and the copy effect when the user presses and holds the CTRL key while dragging.

Leaving content frame