TDialogButtons.DefaultButton property
The default button for the dialog.
Declaration
property DefaultButton: TDialogButton read FDefaultButton write SetDefaultButton;Description
DefaultButton is a
TDialogButton property which
contains the dialog button which has its
Default property set to
True.
The property value is assigned when the Default property for a TDialogButton instance in the collection is changed. When Default (in the button) is changed to True, it is stored in DefaultButton. When Default (in the button) is set to False, the value in DefaultButton is set to Nil. It is assumed that a another button will be designated as the default button.
Use CancelButton for the button with its Cancel
property set to True.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
