Forum > LCL
eoDropFiles option not implemented in SynEdit?
(1/1)
jetchengchu:
Hi,
I'm using Lazarus v0.9.28.2 beta.
I found that I cannot set eoDropFiles option in SynEdit to make it accept dropped files. It seems (from the source code) that files dropping has not been implemented.
How can I do add file dropping functionality to my application, like Lazarus does?
typo:
You should set AllowDropFiles property of the Form to true. And write this on the form event handler to drop files:
--- Code: ---procedure TForm1.FormDropFiles(Sender:TObject;const FileNames:array of String);
begin
SynEdit1.Lines.LoadFromFile(Filenames[0]);
end;
--- End code ---
I think this is enough.
jetchengchu:
Thanks! ::)
Navigation
[0] Message Index