mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 00:40:43 +01:00
parent
0942c356a3
commit
7950eabf8d
@ -297,15 +297,12 @@ begin
|
||||
if WinControl.Controls[i] is TWinControl then
|
||||
begin
|
||||
ChildControl := TWinControl(WinControl.Controls[i]);
|
||||
if Enable then
|
||||
begin
|
||||
if ChildControl.Enabled then
|
||||
EnableWindow(ChildControl.Handle, true);
|
||||
end
|
||||
else
|
||||
EnableWindow(ChildControl.Handle, false);
|
||||
|
||||
EnableChildWindows(ChildControl, Enable); // Recursive call
|
||||
if not Enable or ChildControl.Enabled then
|
||||
begin
|
||||
EnableWindow(ChildControl.Handle, Enable and ChildControl.Enabled);
|
||||
EnableChildWindows(ChildControl, Enable and ChildControl.Enabled); // Recursive call
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user