Browse Source

Update missing property setter in Material design button

lainz 9 years ago
parent
commit
59c98bdc35
1 changed files with 9 additions and 1 deletions
  1. 9 1
      bcmaterialdesignbutton.pas

+ 9 - 1
bcmaterialdesignbutton.pas

@@ -41,6 +41,7 @@ type
     procedure SetFShadowSize(AValue: integer);
     procedure SetFShadowSize(AValue: integer);
     procedure SetFTextColor(AValue: TColor);
     procedure SetFTextColor(AValue: TColor);
     procedure SetFTextFont(AValue: string);
     procedure SetFTextFont(AValue: string);
+    procedure SetFTextQuality(AValue: TBGRAFontQuality);
     procedure SetFTextShadowColor(AValue: TColor);
     procedure SetFTextShadowColor(AValue: TColor);
     procedure SetFTextShadowOffsetX(AValue: integer);
     procedure SetFTextShadowOffsetX(AValue: integer);
     procedure SetFTextShadowOffsetY(AValue: integer);
     procedure SetFTextShadowOffsetY(AValue: integer);
@@ -79,7 +80,7 @@ type
     property TextStyle: TFontStyles read FTextStyle write SetFTextStyle default [];
     property TextStyle: TFontStyles read FTextStyle write SetFTextStyle default [];
     property TextFont: string read FTextFont write SetFTextFont;
     property TextFont: string read FTextFont write SetFTextFont;
     property TextQuality: TBGRAFontQuality read FTextQuality
     property TextQuality: TBGRAFontQuality read FTextQuality
-      write FTextQuality default fqFineAntialiasing;
+      write SetFTextQuality default fqFineAntialiasing;
   published
   published
     property Action;
     property Action;
     property Align;
     property Align;
@@ -170,6 +171,13 @@ begin
   Invalidate;
   Invalidate;
 end;
 end;
 
 
+procedure TBCMaterialDesignButton.SetFTextQuality(AValue: TBGRAFontQuality);
+begin
+  if FTextQuality=AValue then Exit;
+  FTextQuality:=AValue;
+  Invalidate;
+end;
+
 procedure TBCMaterialDesignButton.SetFTextShadowColor(AValue: TColor);
 procedure TBCMaterialDesignButton.SetFTextShadowColor(AValue: TColor);
 begin
 begin
   if FTextShadowColor = AValue then
   if FTextShadowColor = AValue then