CallDialog

User dialog function.

The CallDialog function displays a dialog box defined previously. Not available in WinTask Lite.

Syntax

CallDialog <dialog_name>[,title$]

Parameters

<dialog_name>, name of the dialog box defined by the BEGINDIALOG...ENDDIALOG function.

title$, optional string parameter: it contains the title of the dialog box (it replaces the title specified by the CAPTION statement in the BEGINDIALOG function).

Remarks

Sometimes, CallDialog does not bring to focus the dialogbox under the x64 editions of Windows. Add this key in Registry if you notice this behavior when using dialog boxes:
HKEY_CURRENT_USER\Control Panel\Desktop\ForegroundLockTimeout
Dword with the value 30d40

Example

 

CallDialog Box1