Sign in Join
FPDoc Onlineexperiment

TDialogButton.ModalResult property

Member of TDialogButtonpublicIn unit InterfaceBase

The modal result value returned when the button is clicked.

Declaration

pascal
property ModalResult: LongInt read FModalResult write FModalResult;

Description

ModalResult is a LongInt property which contains the modal result value returned when the button is clicked in the dialog.

ModalResult can contain a value defined the TModalResult range type found in the RTL system.uitypes.pp unit. Applications will normally want to use the descriptive modal result constants when reading or writing the value, like:

  • mrNone
  • mrOK
  • mrCancel
  • mrAbort
  • mrRetry
  • mrIgnore
  • mrYes
  • mrNo
  • mrAll
  • mrNoToAll
  • mrYesToAll
  • mrClose

The default value for the property is set to 0 (mrNone) in the Create constructor.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.