Dialog Box Article Index for
Dialog
Shopping
Dialog
Website Links For
Dialog
 

Information About

Dialog Box




from Microsoft Windows ]]
In Graphical User Interface s, a dialog box is a special Window , used in user interfaces to display Information to the user, or to get a response if needed. They are so-called because they form a dialog between the computer and the user—either informing the user of something, or requesting input from the user, or both.

Different types of dialog boxes are used for different sorts of user interaction. The simplest type of dialog box is the Alert , which displays a message and requires only an acknowledgment (by clicking 'OK' usually) that the message has been read. Alerts are used to provide simple confirmation of an action, or include program termination notices or confirmation due to Crashing or intentional closing by user.


MODELESS

''Non-modal'' or '' Modeless '' dialog boxes are used when the requested information is not essential to continue, and so the window can be left open while work continues elsewhere. A type of modeless dialog box is a Toolbar which is either separate from the main application, or may be detached from the main application, and items in the toolbar can be used to select certain features or functions of the application.

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 colours. The user can continue adding text to the main window whatever colour 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).


APPLICATION MODAL

where they are shown as ''sheets'' attached to a parent window. These dialogs block only that window until the user dismisses the dialog, permitting work in other windows to continue, even within the same application.


WINDOW MODAL



To the left is an example of a window-modal (sheet) dialog used in Mac OS X. Here, the underlying document is being saved. In OS X, sheets appear to emanate from a slot in their parent window (just visible here), 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. While the dialog is displayed, no work can be done in the underlying document itself, but the parent window can still be moved, resized and minimised, and other windows can be brought in front so the user can work with them:



To the right is the same type of dialog box (a "save window") in Windows XP, showing the same action as the Mac OS X dialog, e.g. saving the HTML page of this very article. There are some similarities to Mac OS X and some differences. The similarities are that
  • 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 (cannot be resized, moved or minimized) are possible while the dialog box is open.


Both mechanisms have shortcomings:
  • The Windows dialog box locks the parent window which can hide other windows you need to refer to while interacting with the dialog, though this may be mitigated since you can select other windows through the task bar.

  • The OS X dialog box blocks the parent window, preventing you from referring to it while interacting with the dialog. For example, in the above image you can not see the original web page's URL in the parent window, which means you can't copy it easily to the dialog if you decide to save the web page with the same name as the URL. This is mitigated in cases where you can close the dialog box and re-open it.