Will it show its fancy animation then?
No. it will just execute the oncick handler.
Does Click actually implement the fancy animation?
E.g. TButton.Click doen's make the button perform it "click animation".
Bart
That's right.
But what I wanted is to replace the TButton's with TBCMaterialDesignButton's which are more appealing visually. Because it is into a visual keypad form (was fully working with TButton's) I wanted buttons to be clicked by pressing a digit keys from a keyboard: but no public
Click method. Then it turns out there is no
Default property to set in 'Done' button when enough digits entered, etc.
The animation would be a bonus, but it's not the most important one. The thing is that the TBCMaterialDesignButton isn't the most consistent button control, it lacks many of the properties of the regular TButton.
I wanted to point this out.
Of course, I know how to overcome the current shortcomings, the easiest way is with a class helper visibility hack:
TBCMaterialDesignButtonHelp = class helper for TBCMaterialDesignButton
private
function GetDefault: Boolean; // GetParentForm(Self).DefaultControl = Self
procedure SetDefault(AValue: Boolean); // GetParentForm(Self).DefaultControl := Self/Nil
public
procedure ClickMe; // calls Click
property Default: Boolean read GetDefault write SetDefault default False;
end;