ImageEn, unit iexFolderMView |
|
TImageEnFolderMView.OnDropFiles
Declaration
property OnDropFiles: TIEDropFilesEvent;
Description
Occurs whenever files are dropped onto the control.
ssFiles is a list of files that have been dropped.
DropEffect is the action that will be performed on the files. It can be modified to override the default handling. Supported values are: DROPEFFECT_NONE (0), DROPEFFECT_COPY (1) or DROPEFFECT_MOVE (2)
Note: You must enable
AutoDropFiles for files to be dropped
procedure TMyForm.IEFolderMView1DropFiles(Sender: TObject; ssFiles: TStrings; var DropEffect: Integer);
begin
// Do not allow multiple files to be dropped
if ssFiles.Count > 1 then
begin
DropEffect := DROPEFFECT_NONE;
MessageBeep( MB_ERROR );
end;
end;