4. Insert/Paste a Dialog Box Template Code into a Script

Insert  template code a Program Editor script

Paste template code into a Program Editor script.

Insert Template Code into a Program Editor Script

  1. Place the cursor in a Program Editor script where the dialog box code will be inserted.

  1. Click Edit>Insert Picture on the Program Editor menu bar.

The Dialog Editor opens displaying a new dialog box.

  1. Do one of the following.

Configure the new dialog box.

Click File>Open on the Dialog Editor menu bar to open an existing dialog box.

  1. Do one of the following.

Click

On the

File>New

Menu bar

File>Open

Menu bar

File>Update

Menu bar

File>Exit and Return

Menu bar

Close button

Title bar

Press

On the

Ctrl+N

Keyboard

Ctrl+O

Keyboard

A message box opens asking if you want to save the dialog box template.

  1. Click Yes.

Result: The dialog box template code is inserted into the Program Editor script at the specified location.

Paste Template Code into the Program Editor Script

  1. Click Edit>Insert Picture on the Program Editor menu bar.

The Dialog Editor opens displaying a new dialog box.

  1. Do one of the following.

Configure the new dialog box.

Click File>Open on the Dialog Editor menu bar to open an existing dialog box.

  1. Select the dialog box.

  2. Do one of the following.

Click Edit>Copy on the Dialog Editor menu bar.

Press Ctrl+C on the keyboard.

  1. Select the Program Editor.

  2. Place the cursor where the code should be inserted.

  1. Do one of the following.

Click Edit>Paste on the Program Editor menu bar.

Press Ctrl+P on the keyboard.

Result: The Dialog script is pasted at the insertion point in the Program Editor script.

More information

Dialog Editor.