LCL: qt, gtk1, win32: dropfiles for sub forms

git-svn-id: trunk@45561 -
This commit is contained in:
mattias 2014-06-16 22:32:25 +00:00
parent 0768cb0727
commit bbf6c0d283
3 changed files with 7 additions and 6 deletions

View File

@ -2830,8 +2830,8 @@ begin
TCustomForm(LCLObject).IntfDropFiles(Files)
else
begin
ParentForm := LCLObject.IntfGetDropFilesTarget;
if Assigned(ParentForm) then
ParentForm := TCustomForm(LCLObject.IntfGetDropFilesTarget);
if ParentForm is TCustomForm then
ParentForm.IntfDropFiles(Files);
end;

View File

@ -918,7 +918,7 @@ var
Drop: HDROP;
L: LongWord;
I, C: Integer;
aForm: TCustomForm;
DropForm: TWinControl;
{$IFDEF WindowsUnicodeSupport}
AnsiBuffer: string;
WideBuffer: WideString;
@ -958,9 +958,9 @@ var
if Length(Files) > 0 then
begin
aForm := lWinControl.IntfGetDropFilesTarget;
if aForm<>nil then
aForm.IntfDropFiles(Files);
DropForm := lWinControl.IntfGetDropFilesTarget;
if DropForm is TCustomForm then
TCustomForm(DropForm).IntfDropFiles(Files);
if Application <> nil then
Application.IntfDropFiles(Files);
end;

View File

@ -1360,6 +1360,7 @@ procedure TPackageEditorForm.FormDropFiles(Sender: TObject;
const FileNames: array of String);
begin
debugln(['TPackageEditorForm.FormDropFiles ',length(FileNames)]);
IntfGetDropFilesTarget;
end;
procedure TPackageEditorForm.RevertClick(Sender: TObject);