bhbagadiya wrote: > Please help me to solve following question. i have searched a lot in > internet but no proper result found. > >>> What is the difference between a Modal and a Modeless dialog box? > Do modal and modeless dialog boxes receive all keyboard messages > that a standard window receives? If no, what messages are received? > Can a dialog be made to receive all key presses? > > > Any comments are invited plz.
I recall reading a Wikipedia.org entry on modal dialogs some time ago. Quickie search turned up: http://en.wikipedia.org/wiki/Dialog_box Gives a pretty good description of modal vs. modeless. Of course, you would have to know that there was an article on Wikipedia to know what to look for. Modal has to do with where keyboard and mouse focus can go. Most dialogs are modal, restricting access to the keyboard and mouse to the dialog (away from the rest of the app.) until the dialog is closed. At which point the main app. "resumes" (technically it doesn't exactly stop - the main window can receive messages but mouse and keyboard messages aren't routed to the window). Non-modal dialogs have to have their message queues pumped for them periodically. You usually use non-modal dialogs in scenarios like "Please wait for this lengthy operation to complete" where you have a dialog that appears and notifies the user with progress bars and some text as to what's going on. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.0 Change tracking and management tool. Reduce tech. support times from 2 hours to 5 minutes. Free for personal use, $10 otherwise. http://www.CubicleSoft.com/VerifyMyPC/
