OnDropFile event (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

TDropFileEvent OnDropFile (System::AnsiString fName);

Delphi Syntax

OnDropFile (fName:String): TDropFileEvent;

Overview

Refer to Loading a Bitmap from a File.

Remarks

Occurs when a file is dropped on any part of the main control. For this event to be triggered, the DropFilesAllowed property should be set to TRUE.

After returning from the event, the Main control examines the DropAutoLoad. If it is TRUE, the file is loaded. If it is FALSE, no further action is taken.

See Also

Elements:

DropAutoLoad, DropFilesAllowed

Topics:

Working with the Control: General Behavior

 

Raster Images: Loading Files