LOTUSSCRIPT/COM/OLE CLASSES

DialogBox method
Example

Brings up a dialog box that displays the current document (either open or selected in a view) or a specified document using a form you specify. The dialog box shares fields with the underlying document. The user interacts with the dialog box as usual, clicking OK or Cancel when finished.

This function can be used with any form, but it's particularly useful with forms that contain a single layout region or table, because the user can interact with the layout region or table as if it were a dialog box.

Defined in

NotesUIWorkspace

Syntax

flag = notesUIWorkspace.DialogBox( form$ , [autoHorzFit] , [autoVertFit] , [noCancel] , [noNewFields] , [noFieldUpdate] , [readOnly] , [title$] , [notesDocument] , [sizeToTable] , [noOkCancel] , [okCancelAtBottom] )

Parameters

form$


autoHorzFit
autoVertFit
noCancel
noNewFields
noFieldUpdate
readOnly
title$
notesDocument
sizeToTable

Note This parameter is new with Release 5.


noOkCancel

Note This parameter is new with Release 5.


okCancelAtBottom

Note This parameter is new with Release 6.


Return value

flag


Usage

The autoHorzFit and autoVertFit parameters allow you to display an entire layout region (sizeToTable is False) or table (sizeToTable is True) in a dialog box without displaying the rest of the form. If the form has more than one layout region or table, the first is used. For best results:


If autoHorzFit and autoVertFit are both False, the entire form is used and no sizing takes place. If the form contains no layout region (sizeToTable is False) or table (sizeToTable is True), the entire form is used and no sizing takes place.

Sharing of field values

This method displays the current or specified document using a different form. This means:


Field sharing is not supported for rich text fields.

Language cross-reference

@DialogBox function in formula language

Example
See Also