|
@@ -166,7 +166,7 @@ type
|
|
|
|
|
|
|
|
TBCFont = class(TBCProperty)
|
|
TBCFont = class(TBCProperty)
|
|
|
private
|
|
private
|
|
|
- FColor: TColor;
|
|
|
|
|
|
|
+ FColor, FDisabledColor: TColor;
|
|
|
FEndEllipsis: boolean;
|
|
FEndEllipsis: boolean;
|
|
|
FFontQuality: TBGRAFontQuality;
|
|
FFontQuality: TBGRAFontQuality;
|
|
|
FHeight: integer;
|
|
FHeight: integer;
|
|
@@ -185,8 +185,9 @@ type
|
|
|
FStyle: TFontStyles;
|
|
FStyle: TFontStyles;
|
|
|
FTextAlignment: TBCAlignment;
|
|
FTextAlignment: TBCAlignment;
|
|
|
FWordBreak: boolean;
|
|
FWordBreak: boolean;
|
|
|
- function IsNamStored: boolean;
|
|
|
|
|
|
|
+ function IsNameStored: boolean;
|
|
|
procedure SetColor(AValue: TColor);
|
|
procedure SetColor(AValue: TColor);
|
|
|
|
|
+ procedure SetDisabledColor(AValue: TColor);
|
|
|
procedure SetEndEllipsis(AValue: boolean);
|
|
procedure SetEndEllipsis(AValue: boolean);
|
|
|
procedure SetFontQuality(AValue: TBGRAFontQuality);
|
|
procedure SetFontQuality(AValue: TBGRAFontQuality);
|
|
|
procedure SetHeight(AValue: integer);
|
|
procedure SetHeight(AValue: integer);
|
|
@@ -211,10 +212,11 @@ type
|
|
|
procedure Scale(AScale: single; APreserveDefaultHeight: boolean = true);
|
|
procedure Scale(AScale: single; APreserveDefaultHeight: boolean = true);
|
|
|
published
|
|
published
|
|
|
property Color: TColor read FColor write SetColor;
|
|
property Color: TColor read FColor write SetColor;
|
|
|
|
|
+ property DisabledColor: TColor read FDisabledColor write SetDisabledColor default clNone;
|
|
|
property EndEllipsis: boolean read FEndEllipsis write SetEndEllipsis default false;
|
|
property EndEllipsis: boolean read FEndEllipsis write SetEndEllipsis default false;
|
|
|
property FontQuality: TBGRAFontQuality read FFontQuality write SetFontQuality;
|
|
property FontQuality: TBGRAFontQuality read FFontQuality write SetFontQuality;
|
|
|
property Height: integer read FHeight write SetHeight default 0;
|
|
property Height: integer read FHeight write SetHeight default 0;
|
|
|
- property Name: string read FName write SetName stored IsNamStored;
|
|
|
|
|
|
|
+ property Name: string read FName write SetName stored IsNameStored;
|
|
|
property SingleLine: boolean read FSingleLine write SetSingleLine default true;
|
|
property SingleLine: boolean read FSingleLine write SetSingleLine default true;
|
|
|
property Shadow: boolean read FShadow write SetShadow;
|
|
property Shadow: boolean read FShadow write SetShadow;
|
|
|
property ShadowColor: TColor read FShadowColor write SetShadowColor default clBlack;
|
|
property ShadowColor: TColor read FShadowColor write SetShadowColor default clBlack;
|
|
@@ -641,7 +643,7 @@ end;
|
|
|
|
|
|
|
|
{ TBCFont }
|
|
{ TBCFont }
|
|
|
|
|
|
|
|
-function TBCFont.IsNamStored: boolean;
|
|
|
|
|
|
|
+function TBCFont.IsNameStored: boolean;
|
|
|
begin
|
|
begin
|
|
|
Result := DefFontData.Name <> Name;
|
|
Result := DefFontData.Name <> Name;
|
|
|
end;
|
|
end;
|
|
@@ -655,6 +657,15 @@ begin
|
|
|
Change;
|
|
Change;
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
+procedure TBCFont.SetDisabledColor(AValue: TColor);
|
|
|
|
|
+begin
|
|
|
|
|
+ if FDisabledColor = AValue then
|
|
|
|
|
+ Exit;
|
|
|
|
|
+ FDisabledColor := AValue;
|
|
|
|
|
+
|
|
|
|
|
+ Change;
|
|
|
|
|
+end;
|
|
|
|
|
+
|
|
|
procedure TBCFont.SetEndEllipsis(AValue: boolean);
|
|
procedure TBCFont.SetEndEllipsis(AValue: boolean);
|
|
|
begin
|
|
begin
|
|
|
if FEndEllipsis = AValue then
|
|
if FEndEllipsis = AValue then
|
|
@@ -842,6 +853,7 @@ begin
|
|
|
FStyle := [];
|
|
FStyle := [];
|
|
|
FName := DefFontData.Name;
|
|
FName := DefFontData.Name;
|
|
|
FColor := clDefault;
|
|
FColor := clDefault;
|
|
|
|
|
+ FDisabledColor := clNone;
|
|
|
FWordBreak := False;
|
|
FWordBreak := False;
|
|
|
FSingleLine := True;
|
|
FSingleLine := True;
|
|
|
FEndEllipsis := False;
|
|
FEndEllipsis := False;
|
|
@@ -852,6 +864,7 @@ begin
|
|
|
if Source is TBCFont then
|
|
if Source is TBCFont then
|
|
|
begin
|
|
begin
|
|
|
FColor := TBCFont(Source).FColor;
|
|
FColor := TBCFont(Source).FColor;
|
|
|
|
|
+ FDisabledColor := TBCFont(Source).FDisabledColor;
|
|
|
FEndEllipsis := TBCFont(Source).FEndEllipsis;
|
|
FEndEllipsis := TBCFont(Source).FEndEllipsis;
|
|
|
FFontQuality := TBCFont(Source).FFontQuality;
|
|
FFontQuality := TBCFont(Source).FFontQuality;
|
|
|
FHeight := TBCFont(Source).FHeight;
|
|
FHeight := TBCFont(Source).FHeight;
|