mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
LCL: fixed streaming TStatusBar.Color, if Color is clWindow (bug #10696)
git-svn-id: trunk@14463 -
This commit is contained in:
parent
dac6ab0c82
commit
4e7fab3731
@ -134,6 +134,7 @@ type
|
||||
procedure CalculatePreferredSize(
|
||||
var PreferredWidth, PreferredHeight: integer;
|
||||
WithThemeSpace: Boolean); override;
|
||||
function ColorIsStored: boolean; override;
|
||||
|
||||
//added.
|
||||
function CreatePanel: TStatusPanel; virtual;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user