Begin Dialog name of the dialog starting x position, starting y position, width, height, string, optional function reference
This statement is used to begin the dialog box.
For more information, see "Dialog Box controls" and "To Create a New Dialog Box".
If you include an optional function name argument, that function runs whenever the custom dialog box is displayed. For more information, see "The Dialog Function" and "The Dialog Function Syntax".
For an example of that, see "DlgSetPicture - Example" where the .DialogFunc code calls a DialogFunc function.
More: