mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-03 07:55:56 +02:00
LCL: fixed allocating child handles
git-svn-id: trunk@25539 -
This commit is contained in:
parent
127ef52c41
commit
225616d66a
@ -3391,13 +3391,13 @@ procedure TWinControl.DoAllAutoSize;
|
|||||||
AWinControl.HandleNeeded;
|
AWinControl.HandleNeeded;
|
||||||
Exit(True);
|
Exit(True);
|
||||||
end;
|
end;
|
||||||
|
Result := False;
|
||||||
for i := 0 to AWinControl.ControlCount - 1 do
|
for i := 0 to AWinControl.ControlCount - 1 do
|
||||||
begin
|
begin
|
||||||
ChildWinControl := TWinControl(AWinControl.Controls[i]);
|
ChildWinControl := TWinControl(AWinControl.Controls[i]);
|
||||||
if (ChildWinControl is TWinControl) and CheckHandleAllocated(ChildWinControl) then
|
if (ChildWinControl is TWinControl) and CheckHandleAllocated(ChildWinControl) then
|
||||||
Exit(True);
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
Result := False;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure ClearRequests(AControl: TControl);
|
procedure ClearRequests(AControl: TControl);
|
||||||
|
Loading…
Reference in New Issue
Block a user