Sign in Join
FPDoc Onlineexperiment

TCustomTaskDialog.DefaultButton property

Member of TCustomTaskDialogpublicIn unit Dialogs

Index of the default button, from the set in the CommonButtons property.

Declaration

pascal
property DefaultButton: TTaskDialogCommonButton read FDefaultButton write FDefaultButton default tcbOk;

Description

DefaultButton is TTaskDialogCommonButton property which indicates the default button for the Task dialog. It represents the button that is clicked if the user presses the Space or Enter key when the Task dialog is initially displayed.

The property contains one of the values from the CommonButtons property. The default value for the property is tcbOK, and represents the OK button.

It is used to set the default modal result value returned during execution when a DefaultButton has not been specified in the Buttons collection.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.