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

Demo  \Demos\Other\MetaListView\MetaListView.dpr


Example

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