FMX.StdCtrls.TCustomButton.RepeatClick
Delphi
property RepeatClick: Boolean read FRepeat write FRepeat default False;
C++
__property bool RepeatClick = {read=FRepeat, write=FRepeat, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.StdCtrls.pas FMX.StdCtrls.hpp |
FMX.StdCtrls | TCustomButton |
Description
Specifies whether to automatically repeat the button click after a preset time.
Set the RepeatClick property to True to make the button automatically repeat the clicking event, thus executing its OnClick event cyclically, after a preset time has passed since the last OnClick execution.
The timer interval starts with 500 milliseconds for the first wait and then moves to 100 milliseconds per wait cycle. This interval cannot be modified by the user.
Each time 100 milliseconds pass, DoRepeatDelayTimer is executed. DoRepeatDelayTimer internally calls the DoRepeatTimer method to perform the button's OnClick event.
See Also
- FMX.StdCtrls.TCustomButton.IsPressed
- FMX.StdCtrls.TCustomButton.StaysPressed
- FMX.StdCtrls.TCustomButton.DoRepeatTimer
- FMX.StdCtrls.TCustomButton.DoRepeatDelayTimer