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

TDialogButton.Default

True if the button is the default button.

Declaration

Source position: interfacebase.pp line 95

public property TDialogButton.Default : Boolean
  read GetDefault
  write SetDefault;

Description

Default is a Boolean property which indicates if the button is the default button for the dialog.

Default is True when the button instance is the value assigned to the DefaultButton property in the TDialogButtonsCollection. Setting a new value in Default causes the DefaultButton property in TDialogButtons to be updated accordingly.

Use Cancel to control whether the button is used as the Cancel button in the dialog.

Use ModalResult to get or set the value returned when the button is clicked.

See also

TDialogButton.Cancel

  

True if the button is the Cancel button.

TDialogButton.ModalResult

  

The modal result value returned when the button is clicked.

TDialogButtons.DefaultButton

  

The default button for the dialog.


Version 4.0 Generated 2025-05-03 Home