New in version 23the direct indication of duration (1 s or 10 ms for example).

the direct indication of duration (1 s or 10 ms for example).

If this parameter is set to 0 or if it is not specified, the time-out is endless (default case): the specified window will not be automatically closed and the time-out that was previously defined is canceled.

Remarks

Scope of DelayBeforeClosing

Dialog boxes: DelayBeforeClosing is taken into account for all the dialog boxes opened by the application, regardless of the code where this function is called. To restore a standard operating mode, use DelayBeforeClosing and specify no time-out.

Window: DelayBeforeClosing only applies to the specified window. The function is disabled when this window is closed: if this window is re-opened (Open), the window will not be automatically closed. DelayBeforeClosing must be re-used.