mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 08:50:16 +02:00
LCL, remember custom wincontrol color on handle destroy, issue #11529
git-svn-id: trunk@15566 -
This commit is contained in:
parent
b8abd98a33
commit
1556c0017d
@ -6600,6 +6600,9 @@ begin
|
||||
// make sure our text is saved
|
||||
if TWSWinControlClass(WidgetSetClass).GetText(Self, S)
|
||||
then FCaption := S;
|
||||
// if color has changed make sure it will be restored
|
||||
if FColor<>clWindow then
|
||||
Include(FWinControlFlags,wcfColorChanged);
|
||||
RemoveProp(Handle,'WinControl');
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user