mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 18:08:35 +02:00
LCL: Fixed ParentBackground of GroupBoxes cannot be set to true. Issue #38777
git-svn-id: trunk@65036 -
This commit is contained in:
parent
72963f6adb
commit
df1e1dc31a
@ -98,8 +98,9 @@ end;
|
||||
procedure TCustomFrame.SetColor(Value: TColor);
|
||||
begin
|
||||
inherited SetColor(Value);
|
||||
if Color <> clDefault then
|
||||
ParentBackground := False;
|
||||
if Color = clDefault then Exit;
|
||||
if Assigned(Parent) and (Value = Parent.Color) then Exit;
|
||||
ParentBackground := False;
|
||||
end;
|
||||
|
||||
procedure TCustomFrame.SetParent(AParent: TWinControl);
|
||||
|
@ -50,8 +50,9 @@ end;
|
||||
procedure TCustomGroupBox.SetColor(Value: TColor);
|
||||
begin
|
||||
inherited SetColor(Value);
|
||||
if Color <> clDefault then
|
||||
ParentBackground := False;
|
||||
if Color = clDefault then Exit;
|
||||
if Assigned(Parent) and (Value = Parent.Color) then Exit;
|
||||
ParentBackground := False;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user