APPLICATION DESIGN
When you use @DialogBox, all values entered in the dialog box are stored in the document created with the host form and can be seen in its Document Properties box even if the fields do not appear on the host form. If the keyword [NoNewFields] is used with the @DialogBox function, the fields that are on both the host form and the dialog form will be updated when the dialog form is saved or refreshed. If [NoFieldUpdate] is used, no fields or field values from the dialog box form will be updated on the host form.
Layout regions are supported in IBM® Lotus® Notes® applications only.
1. Open or create the dialog form.
2. Choose Create - Layout Region - New Layout Region.
3. Resize the layout region to fit the dialog box you want to create.
4. Choose Design - Layout Properties.
5. Deselect "Show border" and select "3D style."
6. Click the layout region and then create the graphics, text, and fields for the dialog box.
7. Close and save the form.
8. Double-click the host form that will display the @DialogBox button.
9. Place the cursor where you want to add the button, and choose Create - Hotspot - Button.
10. On the Display tab, add a label and width for the button.
11. In the Programmer’s pane, click Formula, and write a formula using @DialogBox. Include the name of the dialog form.
Guidelines for designing a form that presents a dialog box
To match the Notes user interface as closely as possible, follow these guidelines:
Although you can design the dialog form in any way, a 3D layout region most closely resembles a dialog box. A layout region that is 3 inches square is big enough to display a few fields and two or three buttons.
OK and Cancel buttons appear automatically to the right of the layout region. If you do not want the cancel button to appear, use the @DialogBox keyword [NoCancel]. If you do not want the OK or the Cancel button to appear use [NoOkCancel].