earleh@dartvax.UUCP (09/29/87)
A small subset of Macintosh applications require that PrOpenPage()
set the current port to the printing port...
pascal void PrOpenPage(pPrPort,rPageFrame)
TPPrPort pPrPort;
TPRect rPageFrame;
{
SetPort(pPrPort); /* <<-- Some applications need this. */
/*
(Other printer specific
code which is appropriate for starting the page.)
*/
}
Is this in the specifications for the routine, or is somebody taking
advantage of an undocumented feature?
--
*********************************************************************
*Earle R. Horton, H.B. 8000, Dartmouth College, Hanover, NH 03755 *
*********************************************************************
singer@endor.harvard.edu (Richard Siegel) (09/30/87)
In article <7251@dartvax.UUCP> earleh@dartvax.UUCP (Earle R. Horton) writes: > > A small subset of Macintosh applications require that PrOpenPage() >set the current port to the printing port... > > Is this in the specifications for the routine, or is somebody taking >advantage of an undocumented feature? >-- I did it in my application because it seemed the right thing to do; I don't know if it's in the spec or not. Inside Mac doesn't say anything on the subject? --Rich **The opinions stated herein are my own opinions and do not necessarily represent the policies or opinions of my employer (THINK Technologies, Inc). Richard M. Siegel Customer Support Representative THINK Technologies, Inc. Uucp: {decvax, ucbvax, sun}!harvard!endor!singer Internet/Arpanet: singer@harvard.harvard.edu No one writes programs that work right the first time. If they did, I'd be out of a job.
jww@sdcsvax.UCSD.EDU (Joel West) (09/30/87)
I would have suspected that the coder of the application got too lazy to do their own SetPort, it worked on Apple's printer drivers, so they were never called to account for it. However, MacApp seems to assume that PrOpenPage leaves the port set as the current GrafPort, so it would appear that this is a hidden specification. -- Joel West (c/o UCSD) Palomar Software, Inc., P.O. Box 2635, Vista, CA 92083 {ucbvax,ihnp4}!sdcsvax!jww jww@sdcsvax.ucsd.edu or ihnp4!crash!palomar!joel joel@palomar.cts.com