DropFilesAllowed example for C++ Builder

This example toggles the DropFilesAllowed property.

Add a button to the main form and code its procedure as follows:

void __fastcall TForm1::Button1Click(TObject *Sender)
{
   Lead1->DropFilesAllowed= !Lead1->DropFilesAllowed;

   if( (Lead1->DropFilesAllowed== TRUE))
      Lead1->DropAutoLoad= TRUE;
   else
      Lead1->DropAutoLoad = FALSE;
}