I want to be able to drag a list of selected records from my grid and drop them onto a program which accepts WM_DROPFILES.An example of using attachment:
My environment is Windows (Windows 7 64bit).
I want to be able to drag a list of selected records from my grid and drop them onto a program which accepts WM_DROPFILES.An example of using attachment:
My environment is Windows (Windows 7 64bit).
In the new project add the TMemo component to the form, fill in its lines with the full file names and add the code with the event:Then, at run time, drag Memo to some directory in Windows Explorer.
procedure TForm1.Memo1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if DragDropCopyComplete(Memo1.Lines) then Caption := 'Dropped'; end;