Icon OnClose Event

property OnClose: TNotifyEvent

This event is triggered when the dialog is closed by the user via the caption bar close button, or when the Close method is called.
Image