Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!ucbcad!zen!ucbvax!decvax!decwrl!nsc!voder!apple!tecot From: tecot@apple.UUCP Newsgroups: comp.sys.mac Subject: Re: Background Printing Message-ID: <1301@apple.UUCP> Date: Thu, 9-Jul-87 13:47:48 EDT Article-I.D.: apple.1301 Posted: Thu Jul 9 13:47:48 1987 Date-Received: Sun, 12-Jul-87 01:54:54 EDT References:Reply-To: tecot@apple.UUCP (Ed Tecot) Organization: Apple Computer Inc., Cupertino, USA Lines: 25 In article rs4u+@ANDREW.CMU.EDU (Richard Siegel) writes: > >So what I need to do is put calls to my IdleProc in my drawing routine? >Right now, I use the same code to draw my window as I do to print -- >just a different port, is all. > >*Sigh*. Putting in hooks is a pain, but I s'pose... > > --rich No, no, no... Just set up your idleProc AFTER you call PrOpenDoc, instead of before: myPrPort := PrOpenDoc(prRecHdl, NIL, NIL); prRecHdl^^.prJob.pIdleProc := @(MyIdleProc()); FOR pg := 1 TO myPgCount DO IF PrError = noErr THEN BEGIN ... Note: My Pascal is rusty, hopefully line 2 is syntactically correct. In any case, you know what I mean (or do you?) _emt