TMsgDlgResultEvent = procedure (DlgResult: TModalResult) of
object
Available In: Client and Server Applications
The TMsgDlgResultEvent event type is used with the MessageDlg procedure to pass an event handler to the procedure that is called when the modal message dialog is closed by the user.
The DlgResult parameter indicates the button that the user clicked or selected, if any, to close the message dialog.