Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven.umd.edu!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!blackwater!vrm From: vrm@blackwater.cerc.wvu.wvnet.edu (Vasile R. Montan) Newsgroups: comp.sys.mac.programmer Subject: Why would it suddenly become impossible to draw into a modal dialog? Message-ID: <1767@babcock.cerc.wvu.wvnet.edu> Date: 16 May 91 02:01:27 GMT Sender: news@cerc.wvu.wvnet.edu Reply-To: un020070@vaxa.wvnet.edu Lines: 26 Well, this one's got me stumped. :-/ Before, I have never had any problem drawing into a modal dialog; you just setPort to the dialog and draw into it as you would into any window. For some reason, a dialog I am working on starts out drawing fine, but after once or twice through the loop, it becomes impossible to draw anything else into the dialog. All of the mouse events are handled properly, but the loss of drawing ability is so absolute that the Toolbox can't even hilite its own buttons. Reapplication of SetPort doesn't help the problem any. The dialog is a fairly complex one, containing several buttons, four pop-up menus, an editable text item, a PICT, and several disabled text items. There is a complex filter function which handles the pop-up menus. The pop-up items are defined in my template as user items; I set a pointer to the routine to draw the menu boxes so that updates are handled automatically. I am not certain, but the problem *may* have first manifested when I changed my code so that these items were drawn in this manner (with a pointer passed by SetDItem). Any good ideas? --Kurisuto un020070@vaxa.wvnet.edu