Explain modal and modeless dialog box? What is the difference between modal and modeless dialog box?Modal dialog box is the dialog box in which user response is required before continuing with the program. The Paragraph dialog box of WordPad is a good example of it when it is displaying, the user cannot use any other part of WordPad unless he or she closes this object first
Modeless dialog box is the dialog box in which the screen remain stable and available to all the user for use at any time but it doesn’t stop their and allow other user work to be carried out without any interference. For example The Find dialog box of WordPad.
The difference between Modal and modeless dialog box are:-
Modal captures the message loop and doesn’t move on to other objects until the current object is closed but modeless doesn’t capture it.
Modal doesn’t allow its parents window to be accessed until all other windows are closed but it is allowed in modeless.
Example of Modal is Save and Save As in Microsoft word until they are opened you can not do anything until you close the window whereas Find and Replace can simultaneously be executed together.
|