what is the difference between modal and modeless dialog boxes?
Rajni
2007-03-20 21:03:50 UTC
what is the difference between modal and modeless dialog boxes?
Four answers:
Rishi
2007-03-20 21:20:02 UTC
A dialog box is a window that pops up in response to user action to inform the user with a message. E.g. if the user does not save the document and exists the application the window pops up asking if he wants to save the document. This window is the dialog box.
Modal Dialog: A modal dialog box disables the window to which it is assigned until the user dismisses the dialog box. E.g. The dialog that gets displayed with “yes”/”no”/”cancel” when you try to exit MS Word without saving the document is a modal dialog box.
A model dialog box is created by calling the doModal() function of the dialog class. This function does not return back control to the caller until the dialog is dismissed.
E.g. CDialog dlg;
dlg.doModal();
Modeless Dialog: A modeless dialog box is just the reverse of modal. It allows the user complete control of the application which owns it and the user can continue his work without closing the dialog.
A modeless dialog box can be created using the Create () command of CDialog class. The Create() call returns as soon as the dialog box is created. Hence the control returns back to the caller and the user is able to continue using the application.
weik
2016-11-12 11:25:30 UTC
Modal Vs Modeless
2015-08-07 10:48:02 UTC
This Site Might Help You.
RE:
what is the difference between modal and modeless dialog boxes?
Liviawarty J
2007-03-20 21:10:28 UTC
A dialog box with modal is dependent on the modal form/window...
So once the modal dialog box is active, you can't select the main window/form until you close the dialog box...
Modeless dialog box is the other way round... eventhough the dialog box is active, you still can switch to the main window/form.
Good Luck!
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.