ImageEn, unit iexFolderMView |
|
TImageEnFolderMView.AutoDropFiles
Declaration
property AutoDropFiles: TIEFileDragDropActions;
Description
Whether files can be dropped onto the grid from other Windows applications, such as Explorer.
Default: [] (drag drop is disabled)
Value | Description |
[] | Dropping of files is disabled |
[iedpMove] | Files that are dropped onto the control will be moved to the current Folder |
[iedpCopy] | Files that are dropped onto the control will be copied to the current Folder |
[iedpCopy, iedpMove] | Files that are dropped onto the control can be moved or copied to the current Folder. If the Shift key is pressed, they will be moved, otherwise they will be copied |
Note: You can use the
OnDropFiles to override the handling of specific dropped files
Exampes
// Allow dragging and dropping to/from Windows Explorer
IEFolderMView.AutoDragFiles := [iedaMove, iedaCopy];
IEFolderMView.AutoDropFiles := [iedaMove, iedaCopy];
// Disable dragging and dropping
IEFolderMView.AutoDragFiles := [];
IEFolderMView.AutoDropFiles := [];