Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!cernvax!chx400!bernina!bernina!neeri From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.sys.mac.programmer Subject: Re: Why would it suddenly become impossible to draw into a modal dialog? Message-ID: Date: 16 May 91 11:59:08 GMT References: <1767@babcock.cerc.wvu.wvnet.edu> Sender: news@bernina.ethz.ch (USENET News System) Organization: Integrated Systems Laboratory, ETH, Zurich Lines: 22 In-Reply-To: vrm@blackwater.cerc.wvu.wvnet.edu's message of 16 May 91 02:01:27 GMT Nntp-Posting-Host: etzj-gw In article <1767@babcock.cerc.wvu.wvnet.edu> vrm@blackwater.cerc.wvu.wvnet.edu (Vasile R. Montan) writes: >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. Did you change the clipRgn or the visRgn of the window ? Matthias ----- Matthias Neeracher neeri@iis.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_