Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!agate!ig!uwmcsd1!bbn!rochester!ur-tut!jmpi From: jmpi@ur-tut.UUCP (Spike) Newsgroups: comp.sys.amiga Subject: Finding the Active Window Message-ID: <1086@ur-tut.UUCP> Date: 3 Mar 88 01:20:13 GMT Organization: Univ. of Rochester Computing Center Lines: 19 Keywords: Intuition, Screen, Window Hello, Amigans! This is the first of potentially many programming questions. I am beginning work on a little program (which will eventually find its way to the Net :-) and I need to be able to find the active window on a given screen. I know that the Screen structure maintains a linked list of windows, but are these sorted by activation or creation? I tend to think that they are sorted in order of cre- ation, though I would happily be told otherwise. If they are indeed sorted by creation order, how can I find out which one is active? Can I get all the windows on a screen to send my program ACTIVEWINDOW messages? Or should I just scan the window list looking for the one with the WINDOWACTIVE flag set? Thanks in advance for any assistance. I'm sure this is a trivial question for all you Gurus out there ;-) John "Reality Is Optional" Pisello--University of Rochester Computing Center /// ARPA: jmpi%UR-TUT@SEISMO.ARPA Another Proud /// BITNet: jmpi_ss@UORDBV.BITNET Amiga User /// UUCP: jmpi@UR-TUT.UUCP \\\/// US Mail: P.O. Box 28858 River Station Rochester, NY 14627 \XX/