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

TCustomTaskDialog.ModalResult

Modal result value returned when the Task dialog was executed.

Declaration

Source position: dialogs.pp line 816

public property TCustomTaskDialog.ModalResult : TModalResult
  read FModalResult
  write FModalResult;

Description

ModalResult is a TModalResult property with the modal result value returned when the Task dialog was executed. It contains the corresponding value from the Button used to close the Task dialog, DefaultButton if Enter or Space was pressed when the dialog was displayed, or mrNone if the dialog was cancelled.

See also

TCustomTaskDialog.Buttons

  

Collection with the buttons for the Task dialog.

TCustomTaskDialog.Button

  

Not used in the current LCL version.

TCustomTaskDialog.DefaultButton

  

Index of the default button, from the set in the CommonButtons property.

TCustomTaskDialog.Execute

  

Displays the task dialog and captures the modal result value.


Version 4.0 Generated 2025-05-03 Home