lps@raybed2.msd.ray.com (LYNN SHEA) (01/09/91)
When using popup dialog boxes to prompt the user for information as part of an 'if' test, i.e., the dialog is not always used, and the dialog's management is performed in a function posssibly several levels deep in a series of function calls, after the dialog is managed how does one get back to the main event loop, or maybe use another event loop, to return control to X without having to return from each function that was called? The problem this situation causes is that every function that is called would have to return a status indicating that nothing is to be done upon return if control is to be returned to the main event loop so that regular processing would not continue. Also, what if a function that previously had no user interaction has to popup a dialog, then all functions that call it would now have to be aware of this possible return status to indicate no further processing (keep returning until at main event loop)...sounds like a maintenance nightmare. Is there a standard approach to solving this problem? Thanks in advance for any help. Lynn Shea Raytheon Company Tewksbury, MA (508)858-1912 lps@raybed6.msd.ray.com