mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 10:00:26 +02:00
Fix DividerBevel.Font; save Style property, if none bold. Issue #0019763
git-svn-id: trunk@31876 -
This commit is contained in:
parent
81fef95622
commit
2f092a33ad
@ -175,10 +175,11 @@ constructor TDividerBevel.Create(AOwner: TComponent);
|
|||||||
begin
|
begin
|
||||||
inherited Create(AOwner);
|
inherited Create(AOwner);
|
||||||
ControlStyle := [csSetCaption];
|
ControlStyle := [csSetCaption];
|
||||||
Font.Style := Font.Style + [fsBold];
|
|
||||||
FCaptionSpacing := 10;
|
FCaptionSpacing := 10;
|
||||||
LeftIndent := 60;
|
LeftIndent := 60;
|
||||||
FNeedCalcSize := True;
|
FNeedCalcSize := True;
|
||||||
|
if (AOwner = nil) or not(csLoading in AOwner.ComponentState) then
|
||||||
|
Font.Style := Font.Style + [fsBold];
|
||||||
with GetControlClassDefaultSize do
|
with GetControlClassDefaultSize do
|
||||||
SetInitialBounds(0, 0, CX, CY);
|
SetInitialBounds(0, 0, CX, CY);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user