mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 16:59:36 +02:00
Merged revision(s) 54484 #7950eabf8d from trunk:
win32: fix EnableChildWindows. Issue #31590 ........ git-svn-id: branches/fixes_1_6@54491 -
This commit is contained in:
parent
8bc1f86675
commit
5b45f48de6
@ -314,15 +314,12 @@ begin
|
|||||||
if WinControl.Controls[i] is TWinControl then
|
if WinControl.Controls[i] is TWinControl then
|
||||||
begin
|
begin
|
||||||
ChildControl := TWinControl(WinControl.Controls[i]);
|
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;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user