ImageEn, unit imageenview

TImageEnView.AllowDrop

TImageEnView.AllowDrop


Declaration

property AllowDrop: Boolean;


Description

Whether files can be dropped onto the control from other Windows applications, such as Explorer.
Dropped files will be loaded using IO.LoadFromFile.

Default: False

Note:
You can use the OnDropFile to override the handling of dropped files
You can update your UI for the loaded image using the OnImageLoaded event


Demo

Demo  Demos\Other\MetaListView\MetaListView.dpr


Example

// Allow dropping from Windows Explorer to preview images
ImageEnView1.AllowDrop := True;