Unlinked Dialogs

Unlinked dialogs are dialog boxes called by the program code rather than a menu command.

When it generates the .C file, QuickCase:W places the call to an unlinked dialog in a block of nonexecuting code. To use the dialog you must move it to the appropriate location in the program and delete the statements that keep it from executing.

If you want the dialog to appear only when certain conditions are met, you also need to add those restrictions.

IMPORTANT:

The Dialog Editor can produce .DLG files that contain multiple dialog boxes. However, QuickCase:W only reads .DLG files that contain a single dialog box. You must write the C code manually if you want to use multiple dialogs in a single resource file.

To invoke the dialog box, move the call to the appropriate program location and replace the if condition with a suitable test case.

·To add an unlinked dialog box:

1.From the Design menu, choose Unlinked Dialogs. The Unlinked Dialogs dialog box appears (see Figure 6.12).

2.Select the dialog script (.DLG) file containing the dialog you want to add.

3.Choose any options you want to apply to the unlinked dialog (explained below).

4.Choose the Add button to add the dialog to the program.

5.Choose OK.

The prototyper keeps track of the dialog resources you add in the Selected
list box.

The following options are available for unlinked dialogs.

Modal

Forces you to explicitly dismiss the dialog box before continuing with the application; clicking outside the dialog box produces no response.

Modeless

Allows you to move between the application and the dialog box at will, without dismissing the dialog box. The dialog box remains on the screen until the user closes it.

Centered

Places the dialog box in the center of an application's window. If you do not check this option, Windows determines where to place the dialog box.

Update

Applies any attribute changes to the dialog selected in the Selected Dialogs list box. You must choose the Update button for attribute changes to take effect for previously added dialogs.

Add

Adds the script (.DLG) file in the File Name edit field to the Selected Dialogs list box. The dialogs in the Selected Dialogs list box will be added to the application.

Delete

Removes a selected script (.DLG) file from the Selected Dialogs list box.

Clear All

Removes all the script (.DLG) files from the Selected Dialogs list box.