What Is a Dialog Box?
In the graphical user interface, a dialog box (also known as a dialog box [1]) is a special window used to display information to the user in the user interface, or to get user input responses when needed. They are called "dialog boxes" because they form a dialogue between the computer and the usereither to inform the user of some information, or to ask the user for input, or both.
- Tab Order: Press the Tab key or the up, down, left, and right arrow keys, and each control gets the input focus in turn.
- If a button gets the input focus, then pressing the space bar or enter key is equivalent to clicking the button with the left mouse button
- This is a non-mandatory response dialog used to request non-essential information from the user. That is, you can continue the current work regardless of this dialog box or provide any information to it, so the window can be opened and active or obtained
- This dialog box requires the user to respond, otherwise the user cannot continue to operate until the interaction with the dialog box is completed. This kind of dialog box is designed for the operation that the program must be stopped until some additional information is obtained from the user before it can be continued, or you may just want to confirm that the user wants a potentially dangerous operation. The modal dialog box is generally regarded as a bad design solution, because it appears in a way that users do not like to see, or it is ignored by users who are accustomed to not paying attention to the dialog box prompts, resulting in unavoidable dangerous operations.
- Modal dialogs are generally divided into system level and application level. When a system-level dialog box appears, the user cannot perform other operations before completing interaction with this dialog box, such as the shutdown dialog box,
- Model (Computer Science) Based
- From the perspective of operating system implementation, dialog boxes are special windows. What is not special is that the dialog box will contain some controls (such as buttons, edit boxes, drop-down list boxes, etc.). Because normal windows can also contain these controls. The particularity is that these controls of the dialog are used to interact with the user, so there are some agreed usage rules:
- The default window procedure of the dialog box will automatically parse and process the above usage rules when processing related key messages. The window procedure of the ordinary window obviously does not have these default case message processing. The Windows operating system provides an API function IsDialogMessage to support the automatic implementation of the above-mentioned usage rules for dialog boxes. [2]