Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!midway!news From: martin@cs.uchicago.edu Newsgroups: comp.sys.mac.programmer Subject: Window activate events Message-ID: <1991Jan17.213705.6679@midway.uchicago.edu> Date: 17 Jan 91 21:37:05 GMT Sender: news@midway.uchicago.edu (News Administrator) Reply-To: martin@cs.uchicago.edu Organization: University of Chicago Lines: 22 Suppose I'm in a DA, but FrontWindow belongs to the app. I do: app_window := FrontWindow; SelectWindow (da_window); and leave the DA. I get a deactivate event for the app_window sent to the app, followed by an activate event for the da_window sent to the DA. At the end of the ActivateEvt handler of the DA, I do: SelectWindow (app_window); I get the deactivate event for the da_window (and when I check global A64 I see that app_window is marked for activate), but I never get the activate event sent to the app! Instead, when I subsequently check WindowList I find another window (one of the Finder's) is frontmost and app_window appears to have been sent to outer space. All of this was to force the deactivate and activate events to the app from the DA. Is there a better way to do this, or is there something about SelectWindow that I just don't understand? Charles Martin // martin@cs.uchicago.edu