Fix DividerBevel.Font; save Style property, if none bold. Issue #0019763

git-svn-id: trunk@31876 -
This commit is contained in:
martin 2011-08-05 13:43:02 +00:00
parent 81fef95622
commit 2f092a33ad

View File

@ -175,10 +175,11 @@ constructor TDividerBevel.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ControlStyle := [csSetCaption];
Font.Style := Font.Style + [fsBold];
FCaptionSpacing := 10;
LeftIndent := 60;
FNeedCalcSize := True;
if (AOwner = nil) or not(csLoading in AOwner.ComponentState) then
Font.Style := Font.Style + [fsBold];
with GetControlClassDefaultSize do
SetInitialBounds(0, 0, CX, CY);
end;