|
TCustomRichViewEdit.OnDropFiles |
Top Previous Next |
|
Occurs when dropping files in the editor (as a result of drag&drop operation, for example from Windows Explorer) type TRVDropFilesEvent = procedure (Sender: TCustomRichViewEdit; Files: TStrings; var FileAction: TRVDropFileAction; var DoDefault: Boolean) of object; TRVDropFileAction = (rvdfNone, rvdfInsert, rvdfLink);
property OnDropFiles: TRVDropFilesEvent; (introduced in v1.8) rvddFiles must be included in AcceptDragDropFormats property, otherwise the editor will not accept files.
Input parameters: Files – list of names of dropped files. FileAction = rvdfNone. DoDefault = True.
Output parameters: FileAction – operation that you have performed with these files: ▪rvdfNone – nothing, ▪rvdfInsert – the files were inserted, ▪rvdfLink – hyperlinks to the files were inserted. FileAction is ignored if DoDefault is set to True. DoDefault – set it to False if you have processed the files yourself in this event. By default, RichViewEdit inserts graphic files, *.RTF, *.RVF, *.TXT.
See the example (how to insert files of all formats supported by Microsoft Office text import converters).
See also: |