Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!uunet!munnari.oz.au!diemen!tasman!steveh From: steveh@tasman.cc.utas.edu.au (Steven Howell) Newsgroups: comp.sys.mac.programmer Subject: Quickdraw: what's the story? Message-ID: Date: 6 Jun 91 05:25:42 GMT Sender: news@diemen.utas.edu.au Distribution: comp Lines: 24 G'day everyone, I'm experiencing a few simple problems with quickdraw. It's probably a basic problem, but I'm pretty new to programming with the toolbox, so here goes: (I'm using Think Pascal 2.0) My application starts up and lets the user open a window containing a graphic (for the sake of argument constructed with simple moveto's and lineto's). I set the current port to my window with SetPort(@mywindowrecord.port). The shape draws just fine. Now the problem: If the user pulls down the apple menu and selects "about", a modal dialog box appears, partially obscuring the graphic. When the dialog box is "put away", it leaves a hole in my window. My event loop successfully detects the updateEvent and faithfully attempts to redraw the window contents - however, none of my quickdraw calls show up. (Even if I halt my program, select "Instant" and type in a few moveto's and lineto's, nothing appears. What am I doing wrong? Thanks in advance, steve h. ps. I have tried re-calling Setport. I have also tried calling SelectWindow (a bit pointless, since it's already selected) and penpat(black), all to no avail. Help!