Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!aggaton From: aggaton@diku.dk (Klavs Torben Pedersen) Newsgroups: comp.sys.amiga Subject: Re: Question on System Request Message-ID: <1990Nov27.191811.5808@diku.dk> Date: 27 Nov 90 19:18:11 GMT References: <1990Nov19.151458.7631@diku.dk> <7997@ucdavis.ucdavis.edu> <1990Nov21.012537.6773@cs.dal.ca> Distribution: comp Organization: Department Of Computer Science, University Of Copenhagen Lines: 46 dewolfe@ug.cs.dal.ca (Colin DeWolf) writes: >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? Thanks a lot everybody, a stone fell off my heart. About the RKM L's D's. My question actually originated in the above passage. And it mentions nothing about the Process struture :) It just, merely, summarizes (what we all know), why requesters have a right to exists. Perhaps my edition has a bug. (It has least one more, since half of a listing is missing, about menus I think)... I'm sorry about my harsh tone in my previous letter, but I just felt lost, panicked and in every way irritated :) -Klavs Pedersen -If you are outside inside, you are at least inside outside-