Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!usc!samsung!uunet!midway!ncar!gatech!purdue!haven!cs.wvu.wvnet.edu!robinson From: robinson@cs.wvu.wvnet.edu (John Robinson) Newsgroups: comp.sys.mac.programmer Subject: Re: Getting Events in GetNextEvent patch Message-ID: <1000@h.cs.wvu.wvnet.edu> Date: 13 Nov 90 16:33:12 GMT References: <998@h.cs.wvu.wvnet.edu> <14605@neptune.inf.ethz.ch> Sender: news@cs.wvu.wvnet.edu Lines: 23 In article <14605@neptune.inf.ethz.ch>, mneerach@iiic.ethz.ch (Matthias Ulrich Neeracher) writes: > In article <998@h.cs.wvu.wvnet.edu> robinson@cs.wvu.wvnet.edu (John Robinson) writes: > >I am working on an init that pops up a dialog window when you hit a > >user-definable key sequence. I accomplish this by patching GetNextEvent > >and looking for the appropiate event in the Event Queue. If it is there, > >I pop-up my window. How should I go about getting subsquent events for > >my dialog should I manually look throught the event queue for mouse-down > >events and the like. > > [Stuff Deleted...] > > During your popup dialog, you just can call GetNextEvent. > But will this cause problems. I don't want to allow a context-switch under MultiFinder while the dialog is popped up. Can this happen if I use GetNextEvent. I remember reading something about putting some magic value in the windowkind attribute of a window to disallow a context-switch when that window was frontmost am I on the right track. Thanks for your help. John