to close the dialog. Now
_PRG.i_x := 0; OnDialogClosed [...] closes the dialog. On
to close the dialog