Dialog box
This article needs additional citations for verification. (February 2020) |

In
Dialog boxes are classified as "
The simplest type of dialog box is the
An example of a dialog box is the about box found in many software programs, which usually displays the name of the program, its version number, and may also include copyright information.
Modeless
Non-modal or
In general, good software design calls for dialogs to be of this type where possible, since they do not force the user into a particular mode of operation. An example might be a dialog of settings for the current document, e.g. the background and text colors. The user can continue adding text to the main window whatever color it is, but can change it at any time using the dialog. (This isn't meant to be an example of the best possible interface for this; often the same functionality may be accomplished by toolbar buttons on the application's main window.)
System modal
System modal dialog boxes prevent interaction with any other window onscreen and prevent users from switching to another application or performing any other action until the issue presented in the dialog box is addressed. System modal dialogs were more commonly used in the past on single tasking systems where only one application could be running at any time. One current example is the shutdown screen of current Windows versions.
Application modal
Modal dialog boxes temporarily halt the program: the user cannot continue without closing the dialog; the program may require some additional information before it can continue, or may simply wish to confirm that the user wants to proceed with a potentially dangerous course of action (
A modal dialog interrupts the main workflow. This effect has either been sought by the developer because it focuses on the completion of the task at hand or rejected because it prevents the user from changing to a different task when needed.
Document modal
The concept of a document modal dialog has recently been used, most notably in
In macOS, prior to macOS Big Sur, dialogs appear to emanate from a slot in their parent window, and are shown with a reinforcing animation. This helps to let the user understand that the dialog is attached to the parent window, not just shown in front of it. In Big Sur and later, the parent window is greyed out, and the dialog appears on top of the middle of the parent window. No work can be done in the underlying document itself while the dialog is displayed, but the parent window can still be moved, re-sized, and minimized, and other windows can be brought in front so the user can work with them:
The same type of dialog box can be compared with the "standard" modal dialog boxes used in Windows and other operating systems.
Similarities include:
- the parent window is frozen when the dialog box opens, and one cannot continue to work with the underlying document in that window
- no work can be done with the underlying document in that window.
The differences are that
- the dialog box may open anywhere in the parent window
- depending on where the parent window is located, the dialog box may open virtually anywhere on screen
- the dialog box may be moved (in almost all cases), in some cases may be resizable, but usually cannot be minimized, and
- no changes to the parent window are possible (cannot be resized, moved or minimized) while the dialog box is open.
Both mechanisms have shortcomings:
- The Windows dialog box locks the parent window which can hide other windows the user may need to refer to while interacting with the dialog, though this may be mitigated since other windows are available through the task bar.
- The macOS dialog box blocks the parent window, preventing the user from referring to it while interacting with the dialog. This may require the user to close the dialog to access the necessary information, then re-open the dialog box to continue.
See also
Notes
- ^ Sometimes 'dialogue box' in British English, though non-standardly[1]
References
- ISBN 978-0-13-210130-1.
- ISBN 0-201-37937-6.
- ISBN 0-7645-2641-3.
- ^ Aza Raskin, A List Apart: Never Use a Warning When you Mean Undo