({{, (RefLink[DialogNotebook, paclet:ref/DialogNotebook])[{(Subscript[cell, 1]),(Subscript[cell, 2]),…}]
represents a dialog notebook that can be manipulated by the Wolfram System front end. }})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[CreateWindow, paclet:ref/CreateWindow]) takes a (RefLink[DialogNotebook, paclet:ref/DialogNotebook]) expression and displays it in a separate window.

If generated as output within a notebook, (RefLink[DialogNotebook, paclet:ref/DialogNotebook]) displays as an in-cell representation of a dialog notebook.

(RefLink[DialogNotebook, paclet:ref/DialogNotebook]) can take any notebook option.

OpenersPrimaryExamplesSection(Spacer1)Examples  (8)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Make a dialog notebook:

CreateWindow[DialogNotebook[{TextCell["Click OK to close"],DefaultButton[]}]];

Make a dialog notebook that accepts input text:

CreateWindow[DialogNotebook[{TextCell["Enter a name: "],InputField[Dynamic[nm],String],DefaultButton[DialogReturn[ret=nm]]}]];

Type something in the input field:

Click OK to assign the input to ret:

ret

OpenersExampleSection1(Spacer1)Scope  (1)

A dialog notebook with a variety of control objects:

DialogNotebook[{Grid[{{Column[{Row[{"x ",Slider[0,{0,1}]}],Row[{"n ",Slider[1,{1,8,1}]}]}],Slider2D[{0,0},{{-1,-1},{1,1}}]},{InputField[],Row[{RadioButton[1,1],RadioButton[1,2],RadioButton[1,3]}]}}]}]

OpenersExampleSection2(Spacer1)Options  (3)

OpenersExampleSubsection0(Spacer1)WindowFloating  (1)

Set to (RefLink[True, paclet:ref/True]) to make a dialog box that stays on top of other windows:

CreateWindow[DialogNotebook[{TextCell["Click to continue"],DefaultButton[]},WindowFloating->True]];

OpenersExampleSubsection1(Spacer1)WindowMargins  (1)

Position a dialog notebook at the upper left of the screen:

CreateWindow[DialogNotebook[{TextCell["Click to continue"],DefaultButton[]},WindowMargins->{{0,Automatic},{Automatic,0}}]];

OpenersExampleSubsection2(Spacer1)WindowTitle  (1)

Define the title bar text for a dialog notebook:

CreateWindow[DialogNotebook[{TextCell["Click to continue"],DefaultButton[]},WindowTitle->"Example Dialog"]];

OpenersExampleSection3(Spacer1)Properties & Relations  (2)

The following are equivalent:

CreateDialog[{TextCell["text"],DefaultButton[]}];

CreateWindow[DialogNotebook[{TextCell["text"],DefaultButton[]}]];

(RefLink[PaletteNotebook, paclet:ref/PaletteNotebook]) and (RefLink[DialogNotebook, paclet:ref/DialogNotebook]) use different default settings:

Options[CreateWindow[DialogNotebook[{TextCell["Click OK to close"],DefaultButton[]}]],{Editable,Saveable,WindowClickSelect,WindowFloating,WindowMargins}]

Options[CreateWindow[PaletteNotebook[{TextCell["Click OK to close"],DefaultButton[]}]],{Editable,Saveable,WindowClickSelect,WindowFloating,WindowMargins}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CreateDialog, paclet:ref/CreateDialog])  ▪  (RefLink[DialogInput, paclet:ref/DialogInput])  ▪  (RefLink[PaletteNotebook, paclet:ref/PaletteNotebook])  ▪  (RefLink[DocumentNotebook, paclet:ref/DocumentNotebook])  ▪  (RefLink[NotebookPut, paclet:ref/NotebookPut])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Creating Dialog Boxes, paclet:tutorial/CreatingDialogBoxes])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Dialog Boxes, paclet:guide/DialogBoxes])}})}})