Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!hsdndev!bunny!bunny.gte.com!CAH0 From: CAH0@bunny.gte.com (Chuck Hoffman) Newsgroups: comp.sys.mac.programmer Subject: Dialog Box while Printing Message-ID: <11348@bunny.GTE.COM> Date: 11 Jun 91 12:39:19 GMT Sender: news@gte.com Organization: GTE Laboratories, Inc. Lines: 25 This may sound trivial but, honest, I've worked on it every night for a week. While printing, I want to put up a message like "Press command-period to stop printing." Should be easy. I tried an Alert, but that waited for a reply. So did ModalDialog. I've tried IsDialogEvent in my main loop, but it never returns a TRUE, even when I click the mouse in the dialog window. Right now, I'm just doing a GetNewDialog, then drawing into the window with TextBox. Of course, there is nothing to redraw the window if it has been obscured, so I lose the text after a while. InvalRect has no effect. Installing the text as a useritem, to be drawn with the already existing procedure for drawing useritems, has no effect. I am treating the text as a useritem because, except when I was using ModalDialog, static text never gets drawn in the window, though check box control titles do. So what's the best way to do this? Bring up a regular text window? Chuck Hoffman, GTE Laboratories, Inc. | I'm not sure why we're here, cah0@bunny.gte.com | but I am sure that while we're Telephone (U.S.A.) 617-466-2131 | here, we're supposed to help GTE VoiceNet: 679-2131 | each other. GTE Telemail: C.HOFFMAN |