FMX.StdCtrls.TButton.Default
Delphi
property Default: Boolean read FDefault write FDefault default False;
C++
__property bool Default = {read=FDefault, write=FDefault, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.StdCtrls.pas FMX.StdCtrls.hpp |
FMX.StdCtrls | TButton |
Description
Determines whether the button's OnClick event handler executes when the ENTER
key is pressed.
If Default is True, the button's OnClick event handler executes when the you press the ENTER
key. Although an application can have more than one Default button, the form calls the OnClick event handler only for the first visible button in the tab order. Moreover, any button that has focus becomes the Default button temporarily; hence, if you select another button before pressing ENTER
, the selected button's OnClick event handler executes instead.