🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #26195

Re: need help to print screen using Lightspeed Pascal

#26195
From: Oliver Steele
Date: Thu, 10 Mar 1988 21:40
26 lines
1870 bytes
[follow-ups to comp.sys.mac.programmer]

ephraim@vidar.think.com.UUCP (ephraim vishniac) writes:
>In article <1460@puff.cs.wisc.edu> geraldn@puff.WISC.EDU (Gerald Ngui ...Burp!) writes:
>>Could someone please offer me some info on how I could 
>>in Lightspeed Pascal dump the screen to the
>>printer (using the Print Manager?) ? 

>There's code for dumping/printing the screen in FKEY 3 and FKEY 4. So,
>the easy way to dump/print the screen is to GetResource('FKEY', 3) or
>GetResource('FKEY', 4), *check to be sure you got the FKEY*,
>dereference the handle, cast the pointer into a procedure pointer, and
>call the procedure.  Note that the procedure is void (no return value)
>and has no parameters.

Be forewarned that some people renumber their FKEYs.  You may want to
check that the long int starting at the eighth byte of the resource is 4
(if your dumping to the printer), or that the resource ends with the
string ".Print".  You could even cycle through the FKEYs, but this gets
harder than what's described in IM II-165, anyway.

----------------------------------------------------------------------------
Oliver Steele					   ...!uunet!mcnc!unc!steele
							   steele@cs.unc.edu
"In computer science, there's no
excuse for cleverness." -- Zdonik
Technical Details
Message-ID: <1649@thorin.cs.unc.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!thorin!unc!steele
References: <1460@puff.cs.wisc.edu> <17709@think.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!thorin!unc!steele
From: steele@unc.cs.unc.edu (Oliver Steele)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: Re: need help to print screen using Lightspeed Pascal
Message-ID: <1649@thorin.cs.unc.edu>
Date: 10 Mar 88 21:40:50 GMT
References: <1460@puff.cs.wisc.edu> <17709@think.UUCP>
Sender: news@thorin.cs.unc.edu
Reply-To: steele@unc.UUCP (Oliver Steele)
Followup-To: comp.sys.mac.programmer
Organization: University Of North Carolina, Chapel Hill
Lines: 26
Keywords: Lightspeed Pascal printing fkey