Sign in Join
FPDoc Onlineexperiment

TDialogButtons.DefaultButton property

Member of TDialogButtonspublicIn unit InterfaceBase

The default button for the dialog.

Declaration

pascal
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.