[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TDialogButtons.DefaultButton

The default button for the dialog.

Declaration

Source position: interfacebase.pp line 114

public property TDialogButtons.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

TDialogButtons.CancelButton

  

The cancel button for the dialog.

TDialogButton.Default

  

True if the button is the default button.

TDialogButton.Cancel

  

True if the button is the Cancel button.


Version 4.0 Generated 2025-05-03 Home