How modal dialog boxes are different from modeless dialog boxes?
Modal dialog boxes are different from modeless dialog boxes in the following ways:-
- Modal dialog boxes, which require the user to respond before continuing the program whereas, Modeless dialog boxes, which stay on the screen and are available for use at any time but permit other user activities
- A modal dialog box doesn’t allow the user to access the parent window while the dialog is open – it must be dealt with and closed before continuing. A modeless dialog can be open in the background.
- When a modal dialog is open you cannot interact with anything else than this modal dialog inside your program, as long as the modal dialog is open. Most dialogs are modal, for example, the File-Save As dialogs are modal. On the other hand, a modeless dialog behaves just like a normal window, you can do anything you want while it is open. The spell checker dialog in Microsoft Word is an example of such a dialog.
- The modal dialog box captures the message loop. Whereas modeless does not.
- Model dialog does not allow its parent window unless it is closed. Whereas modeless it allows.
- Modal Dialog box occupies the Stack Area that the reason it can't give the control to its parent. whereas Modeless Dialog box occupies the Heap Area it gives the control to its parent.
- Modal dialog: does not switch the control of dialog box outside the window.
- Modeless dialog: can perform actions outside the dialog box of the window.
- The model dialog box is static for the model box control application, & the modeless dialog box is dynamic, so you can do anything in the modeless dialog box.
Modal dialog boxes
- Modal dialog boxes force the user to acknowledge the dialog before moving on to the application.
- A modal dialog box doesn’t allow the user to access the parent window while the dialog is open – it must be dealt with and closed before continuing.
- An example for Model Dialog is Save, Save As Dialog in MS – Word. while it is opening you can’t do anything in the application until you close that window.
Modeless dialog boxes
- Modeless dialog boxes enable the user to interact with the dialog and the application interchangeably.
- A modeless dialog can be open in the background.
- An example for a Modeless Dialog is Find, Replace dialogs. You can use Find Dialog, same time you can also work in that word application.
Comments
Post a Comment