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

# TCustomTaskDialog.OnDialogConstructed

Event handler signalled when the constructor for the dialog form instance has completed.

## Declaration

Source position: dialogs.pp line 847

`public property TCustomTaskDialog.OnDialogConstructed : TNotifyEvent read FOnDialogConstructed write FOnDialogConstructed;`

## Description

OnDialogConstructed is a TNotifyEvent property with the event handler signalled when the constructor for the task dialog has completed. It is signalled (when assigned) from the DoOnDialogConstructed method.

For native implementations using the Task Dialog API (supported Windows versions), it occurs when the TDN_DIALOG_CONSTRUCTED notification is handled in the callback routine for the class instance. For emulated task dialog forms, it occurs when the overridden AfterConstruction method is called.

Applications can implement a handler routine to perform actions needed when the dialog form has been allocated but not yet displayed or executed for the class instance.

## Version info

Added in LCL version 4.0.

## See also

TCustomTaskDialog.DoOnDialogConstructed |  | Signals the OnDialogConstructed event handler (when assigned).
TLCLTaskDialog.CreateNew |  | Alternate constructor for the class instance.