mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-22 12:28:15 +02:00
LCL: CloseQuery: query docked forms
git-svn-id: trunk@23033 -
This commit is contained in:
parent
efd8836a89
commit
0eee01a3b4
@ -1719,10 +1719,19 @@ end;
|
|||||||
TCustomForm Method CloseQuery
|
TCustomForm Method CloseQuery
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
function TCustomForm.CloseQuery: boolean;
|
function TCustomForm.CloseQuery: boolean;
|
||||||
|
var
|
||||||
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
if FormStyle = fsMDIForm then
|
if FormStyle = fsMDIForm then
|
||||||
begin
|
begin
|
||||||
// Query children forms whether we can close
|
// Query children forms whether we can close
|
||||||
|
i:=0;
|
||||||
|
while i<DockClientCount do begin
|
||||||
|
if (DockClients[i] is TCustomForm)
|
||||||
|
and not (TCustomForm(DockClients[i]).CloseQuery) then
|
||||||
|
exit(false);
|
||||||
|
inc(i);
|
||||||
|
end;
|
||||||
// TODO: mdi logic
|
// TODO: mdi logic
|
||||||
end;
|
end;
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user