Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!batcomputer!llenroc!cornell!rochester!pt.cs.cmu.edu!henry.ECE.CMU.EDU!hairston From: hairston@henry.ECE.CMU.EDU (David Hairston) Newsgroups: comp.sys.mac.programmer Subject: Re: ModalDialog question Message-ID: <12362@pt.cs.cmu.edu> Date: 15 Mar 91 22:30:55 GMT References: <1235@gagme.chi.il.us> Organization: Gaia II Lines: 17 [essam@gagme.chi.il.us (Essam Khairullah) writes:] [] I have a modal dialog that pops up at a given time (installed with an INIT) [] and I want to be able to dismiss the dialog if the user doesn't do it [] himself after a half an hour. How can I get ModalDialog to report null [] events (or in my filterProc) so that I can tell how much time has passed [] without the user having to cause an event? if you can write a modal dialog loop, you should make the effort to go the next step and write a modeless dialog loop which emulates a modal dialog as much as you'd like. the benefit of being modeless is that you can then handle null events (and you must handle others, like update and activate events). modal dialogs are nice for _simple_ things ... -dave- hairston@henry.ece.cmu.edu