Explorar o código

Update bcmaterialdesignbutton.pas

Leandro Diaz hai 1 ano
pai
achega
e98bf36e71
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      bcmaterialdesignbutton.pas

+ 8 - 0
bcmaterialdesignbutton.pas

@@ -72,6 +72,7 @@ type
   public
   public
     constructor Create(AOwner: TComponent); override;
     constructor Create(AOwner: TComponent); override;
     destructor Destroy; override;
     destructor Destroy; override;
+    procedure Click; override;
   published
   published
     property RoundBorders: single read FRoundBorders write SetFRoundBorders {$IFDEF FPC}default 5{$ENDIF};
     property RoundBorders: single read FRoundBorders write SetFRoundBorders {$IFDEF FPC}default 5{$ENDIF};
     property NormalColor: TColor read FNormalColor write SetFNormalColor default clWhite;
     property NormalColor: TColor read FNormalColor write SetFNormalColor default clWhite;
@@ -518,4 +519,11 @@ begin
   inherited Destroy;
   inherited Destroy;
 end;
 end;
 
 
+procedure TBCMaterialDesignButton.Click;
+begin
+  FMousePos := Point(Width div 2, Height div 2);
+  FTimer.Enabled := True;
+  inherited Click;
+end;
+
 end.
 end.