LCL: fixed streaming TStatusBar.Color, if Color is clWindow (bug #10696)

git-svn-id: trunk@14463 -
This commit is contained in:
vincents 2008-03-07 19:25:21 +00:00
parent dac6ab0c82
commit 4e7fab3731
2 changed files with 8 additions and 0 deletions

View File

@ -134,6 +134,7 @@ type
procedure CalculatePreferredSize(
var PreferredWidth, PreferredHeight: integer;
WithThemeSpace: Boolean); override;
function ColorIsStored: boolean; override;
//added.
function CreatePanel: TStatusPanel; virtual;

View File

@ -138,6 +138,13 @@ begin
if PreferredHeight<=0 then PreferredHeight:=25;
end;
function TStatusBar.ColorIsStored: boolean;
begin
Result:=(Color<>clBtnFace);
if Result and ParentColor and (Parent<>nil) then
Result:=false;
end;
procedure TStatusBar.BeginUpdate;
begin
inc(FUpdateLock);