Path: utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!lll-winken!arisia!janssen@holmes From: janssen@holmes (Bill Janssen) Newsgroups: comp.windows.x Subject: Re: help (with a popup prompt design) Message-ID: <2523@arisia.Xerox.COM> Date: 17 Aug 89 01:26:43 GMT References: <3982@ncar.ucar.edu> <8908151941.AA26642@expo.lcs.mit.edu> Sender: news@arisia.Xerox.COM Reply-To: janssen@holmes (Bill Janssen) Organization: PARC.Xerox.COM Lines: 12 In-reply-to: converse@EXPO.LCS.MIT.EDU (Donna Converse) The one problem with the approach that converse@EXPO.LCS.MIT.EDU suggests is that the display_warning() routine will return from the warning-box creation routine prematurely. To get around this, recursively call the main loop, and have the callback for the button return from the recursive call when pressed, thereby returning to the code in display_warning(), and then return from display_warning with the appropriate value. Bill -- Bill Janssen janssen.pa@xerox.com (415) 494-4763 Xerox Palo Alto Research Center 3333 Coyote Hill Road, Palo Alto, California 94304