Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!NSTN.NS.CA!cs.dal.ca!ug.cs.dal.ca!dewolfe From: dewolfe@ug.cs.dal.ca (Colin DeWolf) Newsgroups: comp.sys.amiga Subject: Re: Question on System Request Message-ID: <1990Nov21.012537.6773@cs.dal.ca> Date: 21 Nov 90 01:25:37 GMT References: <1990Nov19.151458.7631@diku.dk> <7997@ucdavis.ucdavis.edu> Sender: news@cs.dal.ca (USENET News) Distribution: comp Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada Lines: 38 Nntp-Posting-Host: ug.cs.dal.ca In article <7997@ucdavis.ucdavis.edu> zerkle@iris.ucdavis.edu (Dan Zerkle) writes: >In article <1990Nov19.151458.7631@diku.dk> aggaton@diku.dk (Klavs Torben Pedersen) writes: >> I've got a C programming question, that have been bothering me for some >>time now... I open a screen and a standard window on it, next I attach a console >>to the window, all this goes fine, until I begin to access the disks...Suddenly >>the screen is changed, and the system request window is shown "Please insert" >>bla. bla. bla. How the f*&^$ can I make this Bl*&^% requester to pop up on MY >>window????? > >According to the 1.3 Rom Kernel Manual, Libraries and Devices: > >System requester are invoked by the operating system; your program has >no control over these. For example, someone using a text editor might >try to save a file to disk when there is no disk in the drive. The >system requester comes up and makes sure the user understands the >situation and requests a response from the user. > >In other words, you're screwed. However, I'm sure there's some hack >floating around out there to let you do this, even if it is probably >ugly and nonstandard and will break under the next OS release.... > Not according to my 1.3 RKM, L's and D's On page 138, (reprinted without permission of course): System requests appear on the workbench screen by default. They can be made to appear on custom screens by changing the WindowPtr field of Process structure to point to a window on a custom screen The original value of WindowPtr should be cached and restored before the window is closed. There you have it. I wonder if I can get in trouble reciting from the RKM's? Colin DeWolfe dewolfe@ug.cs.dal.ca dewolfe@iris1.ucis.dal.ca > Dan Zerkle zerkle@iris.eecs.ucdavis.edu (916) 754-0240 > Amiga... Because life is too short for boring computers.