formhook OnDropFiles event
Return to Introduction  Previous page  Next page
Applies to
acFormHook component.  

  TacDropFilesEvent = procedure(Sender: TObject; Files: TStrings; const Pos: TPoint) of object;  
property OnDropFiles: TacDropFilesEvent;  

The OnDropFiles event occurs when user drop files or folders onto your form using drag'n'drop technology. The list of dropped files passed in the Files procedure parameter and point where files has been dropped — in Pos parameter.  
tip To allow your form to accept files and folders — make sure that AcceptFiles property is True. To forbid accepting the files — make AcceptFiles property False.  

See also
AcceptFiles and ActivateFormOnAcceptFiles properties and small example how to handle this event.