Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!pequod.cso.uiuc.edu!dorner From: dorner@pequod.cso.uiuc.edu (Steve Dorner) Newsgroups: comp.sys.mac.programmer Subject: Re: _ModalDialog calls only one filterProc? Message-ID: <1990Jul16.165658.23070@ux1.cso.uiuc.edu> Date: 16 Jul 90 16:56:58 GMT References: <1541@excelan.COM> Sender: usenet@ux1.cso.uiuc.edu (News) Reply-To: dorner@pequod.cso.uiuc.edu (Steve Dorner) Organization: University of Illinois at Urbana-Champaign Lines: 18 In article <1541@excelan.COM> ag.group@applelink.apple.com (Mahboud Zabetian) writes: >I have a feeling that _ModalDlog >is brain damaged. Please prove me wrong. Not me, pal. >What *does* happen is that Filter2 will get called twice instead! >(The second time, theEvent->message contains a pointer to DLOG1!) All events get "sent to" the topmost dialog, and hence to its filter. If you want to handle events for other windows, you'll have to add code to "Filter2" to handle that. This is how things are documented to work, like it or not. -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: {convex,uunet}!uiucuxc!dorner