Article View: comp.sys.mac
Article #17305Re: Background Printing
From: tecot
Date: Thu, 09 Jul 1987 17:47
Date: Thu, 09 Jul 1987 17:47
25 lines
1320 bytes
1320 bytes
In article <QUwYGgy00V4IyIs14s@andrew.cmu.edu> 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
Technical Details
Message-ID:
<1301@apple.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!ucbcad!zen!ucbvax!decvax!decwrl!nsc!voder!apple!tecotReferences:
<QUwYGgy00V4IyIs14s@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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: <QUwYGgy00V4IyIs14s@andrew.cmu.edu> Reply-To: tecot@apple.UUCP (Ed Tecot) Organization: Apple Computer Inc., Cupertino, USA Lines: 25