LCL, remember custom wincontrol color on handle destroy, issue #11529

git-svn-id: trunk@15566 -
This commit is contained in:
jesus 2008-06-24 18:51:23 +00:00
parent b8abd98a33
commit 1556c0017d

View File

@ -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;