Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!ames!lll-lcc!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga Subject: Re: Re: Suggestion for new 'feature' for 1.3 Message-ID: <3409@well.UUCP> Date: Sat, 27-Jun-87 02:32:05 EDT Article-I.D.: well.3409 Posted: Sat Jun 27 02:32:05 1987 Date-Received: Sun, 28-Jun-87 00:44:48 EDT References: <8706260624.AA20450@cogsci.berkeley.edu> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Hole Earth 'Lectronic Loss (or words to that effect) Lines: 40 Keywords: Chaos! Summary: Oh, *please* lets standardize. In article <8706260624.AA20450@cogsci.berkeley.edu> bryce@COGSCI.BERKELEY.EDU (Bryce Nesbitt) writes: >In article <6192@eddie.MIT.EDU> Gary Samad typed: >}In article dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: >}} How about this for V1.3: [...] >}} [It] would be utterly trivial to write a program to handle this... >}} simply catch CloseWindow(), do the CloseWindow(), then push a mouse click >}} into the input event stream. >}} >} [puhleeze] don't add anything to the OS that starts sending false mouse >} clicks down the input streams!! > >You are correct, dumping click events into the input stream is a nasty thing >to do. What is needed is a way to say to Intuition, >ActiveateWindowUnderPointer() or, better, WhichWindowIsUnderThePointer() It's easy. First, find out the screen coordinates of the mouse pointer (trivial). Then, call the layers.library function WhichLayer(). This will return a pointer to the layer that the specified X,Y coordinates are inside. Then, search through the linked list of windows and find the one with the same layer address. >While on the subject of needed Intuition tricks, how about RethinkWindow(). >It would rethink a window, primarily the size and position, in one atomic >step. > Yes, please. Another vote for this one, too. Note that it is an addition to the layers.library, not Intuition. >The Amiga is amazingly tollerant and forgiving as to the amount of stuff >you may muck with externally before something breaks. > Hmmm. I don't know. I think the system would get *terribly* annoyed if you had Robotroff, Ping, AutoPoint, and Facc I all running at the same time. :-) :-) :-) _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape ihnp4!ptsfa -\ \_ -_ Bike shrunk by popular demand, dual ---> !{well,unicom}!ewhac O----^o But it's still the only way to fly. hplabs / (pronounced "AE-wack") "Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor