Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!claris!sts!octopus!sjsumcs!33014-18 From: 33014-18@sjsumcs.sjsu.edu (Eduardo Horvath) Newsgroups: comp.sys.amiga Subject: Re: Your undivided attention. Message-ID: <1989Dec7.192413.13542@sjsumcs.sjsu.edu> Date: 7 Dec 89 19:24:13 GMT References: <5389@nigel.udel.EDU> Reply-To: 33014-18@sjsumcs.SJSU.EDU (Eduardo Horvath) Organization: San Jose State University Lines: 26 In article <5389@nigel.udel.EDU> acm131%eric.ccs.northeastern.edu@cunyvm.cuny.edu writes: > >What is the way, under AmigaDOS, to put up a dialogue box which prompts the >user for information, and disallows context switches, opening new windows, >pulling down other screens, etc. Will doing a forbid() be good enough, or >is there more to it? Basically, I want Amy to STOP EVERYTHING until I get >the information. (or the user cancels out of the dialogue box) Yes, I >realise it's a pain, but I want to eliminate unpredictable states. It >seems to me there mucst be a way, because I see other software doing it. > One possibility is to set the WINDOW_DEACTIVATE (or the eqivalent, no RKMs handy) in your window, and whenever the user selects something else, do an ActivateWindow() and a WindowToFront() and a ScreenToFront(). That ought to get his attention. >Using Lattice C, if possible. > Craig. > /// acm131@eric.ccs.northeastern.edu Disclaimer: No, I didn't try it, don't blame me for any fireworks. ---- Eduardo Horvath | Director, Campaign to Free Doctor Science Send your contributions to: 33014-18@sjsumcs.SJSU.EDU "Why don't you stop your whining, and get back to work!" - Doctor Science