[net.sources.mac] Defining your own page sizes

joel@gould9.UUCP (Joel West) (10/20/85)

Enclosed is a modified PREC resource for unusual paper sizes, and a TMPL 
resource that will allow you to edit custom page sizes with ResEdit.

If you received the last Software Supplement, see "The March 1985 
ImageWriter: Programmers's Notes", which explains all this.  To summarize, 
a resource of type PREC (with reserved ID #4) is used by the imagewriter
driver to establish the size of the form, in units of 1/120 of an
inch.  Up to six types may be defined.

The format of the resource is:
	INT: # defined
	INT: (height,width)*6
	Pascal String: (names)*6
Note that 6 pairs of integers and 6 strings are required, no matter how 
many you actually declare.

The PREC resource can be pasted into your application, if it uses unusual
forms.  I have not tried pasting onto the "Imagewriter" or "System"
files, and I was unable to try the Laserwriter "Page Setup" with this
installed to see if it is similarly affected.

If you take the "TMPL" resource and paste it into your ResEdit, then
ResEdit will make the PREC #4 human-readable and easy to modify. 
This cannot be used with PREC resources with ID's 1,2,3, however.
If you edit this resource, you can also see another example of how to 
define templates for your own resources.  (If only REdit could be modified
the same way, to decompile using these templates....)

	Joel West
	{cbosgd,ihnp4,pyramid,sdcsvax,ucla-cs}!gould9!joel
	gould9!joel@nosc.ARPA  (also joel@NOSC)

[Rich: why don't you post the hqx since it is so short? -jww]

(This file must be converted with BinHex 4.0)

:$N0eFh4[E5"38N9$)#-d!*!4!heLP`#3"!%!N!-$(`!!!Km!N!0H!*$b!FS26R9
YBQ9b)'pQ)'C[FQec4&G54"G'Eh*Y)#-a)'KPD@GSG#!S-5ma-M$6+84A8N3@4Qp
bE5!M-5"hD@4dD#!S-5ma-M$6+84A8N3A4QpbE5!M-L"SC@PRD(3J+$%[-6)`dbP
%9e*%&NC[FQdJ)c)JGfPNG'JJ+$%[-6)`dbP%9e*%&dC[FQdJ)c-JD'9TCfKd)#J
a,c%b-0-T4&G54"C'Eh*Y)#-c)(GTC(4S)#Ja,c%b-0-T4&G54"G'Eh*Y)#-d)'K
PD@GSG#!S-5ma-M$6+84A8N3@4QpbE5!M0#"hD@4dD#!S-5ma-M$6+84A8N3A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