mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 08:50:16 +02:00
lcl: In TWinControl.Loaded send CM_PARENTCOLORCHANGED message after setting color and not after setting font
git-svn-id: trunk@23256 -
This commit is contained in:
parent
775a151c45
commit
cd9e4a774f
@ -7263,12 +7263,12 @@ begin
|
||||
if wcfColorChanged in FWinControlFlags then
|
||||
begin
|
||||
TWSWinControlClass(WidgetSetClass).SetColor(Self);
|
||||
NotifyControls(CM_PARENTCOLORCHANGED);
|
||||
Exclude(FWinControlFlags,wcfColorChanged);
|
||||
end;
|
||||
if wcfFontChanged in FWinControlFlags then
|
||||
begin
|
||||
TWSWinControlClass(WidgetSetClass).SetFont(Self,Font);
|
||||
NotifyControls(CM_PARENTCOLORCHANGED);
|
||||
NotifyControls(CM_PARENTFONTCHANGED);
|
||||
FWinControlFlags:=FWinControlFlags-[wcfFontChanged];
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user