Link Search Menu Expand Document

AcceptDrop Property


Specifies the type that accepts drag and drop.

If specified, drag and drop will be accepted. Specify a combination of the following constants.

Constant Value Description
$ FILE 1 Receive a drop of a file from Explorer etc.
$ STRING 2 Receive text edit drops from Word etc.
$ OBJECT Four Receives a reference to the object set by the DragSource.SetObject method
$ COPYMODE 256 Drops are accepted in copy mode. The drag source must specify the copy mode.
$ MOVEMODE 512 Drops are accepted in move mode. The drag source must specify the move mode.

About drop mode

The type of drag and drop to be accepted can be specified by specifying the drop mode ($ COPYMODE, $ MOVEMODE), but in either mode, the copy or move operation is not actually performed.

Please decide the copy or move by the application and implement it.

Attention to specify $MOVEMODE
If both $ COPYMODE and $ MOVEMODE are omitted, the copy mode operates, but if only $ MOVEMODE is specified, the copy mode is canceled.

To specify both copy mode and move mode, use $ COPYMODE + $ MOVEMODE .

Drop mode change by key operation
When $ COPYMODE is specified in AcceptDrop, drag and drop in move mode is not accepted, but you can forcibly change to copy mode and accept drop by pressing the Ctrl key.

Similarly, if $ MOVEMODE is specified, drag and drop in copy mode will not be accepted, but you can forcibly change to move mode and accept drops by pressing the Shift key.


Added since Ver.4.1.0
Not supported in Mobile, AI