TTMSFNCTaskDialog.DefaultButton Property
Gets or sets the zero-based index of the button that receives initial focus and acts as the default when the dialog opens.
API unit family: TMSFNCTaskDialog
Declaring type: TTMSFNCTaskDialog
Inherited from: TTMSFNCCustomTaskDialog
Type: Integer
Syntax
property DefaultButton: Integer;
Default: 0
Remarks
The index counts the buttons that are actually displayed: when CommonButtons is used, buttons are counted in declaration order (tcbOK, tcbYes, tcbNo, tcbCancel, tcbRetry, tcbClose), skipping any not included in the set; when command links are not used, custom buttons in CustomButtons follow the common buttons in the same index sequence. This property has no effect when a custom input control is assigned to InputControl.