home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Programming / Programming Tools / Pascal Demos from Apple / print / PRINTR.TEXT < prev    next >
Encoding:
Text File  |  1985-05-06  |  2.2 KB  |  203 lines  |  [TEXT/ttxt]

  1. *  Input Resource File for Printing example
  2. *
  3.  
  4. example/Print.Rsrc
  5.  
  6. Type JEF9 = STR
  7.   ,0
  8. Jeffery J. Bradford    Version 1.0    April 1985
  9.  
  10. Type BNDL
  11.   ,128
  12.   JEF9 0
  13.   2
  14.   ICN# 1
  15.   0  128
  16.   FREF 1
  17.   0  128
  18.  
  19. Type FREF
  20.   ,128
  21.   APPL 0
  22.  
  23. Type ICN#
  24.   ,128
  25.   2
  26. 00000000
  27. 00000000
  28. 00000000
  29. 00000000
  30. 000FFFF8
  31. 00100010
  32. 0026FF20
  33. 00400040
  34. 009F6880
  35. 070001FF
  36. 097F7203
  37. 130003E5
  38. 2500024B
  39. 4FFFFF95
  40. 80000029
  41. FFFFFFD1
  42. 80000061
  43. FFFFFFC1
  44. 80000041
  45. 90000E45
  46. 8000004A
  47. 80000E50
  48. 80000050
  49. 8FFFFE50
  50. 88000260
  51. F80003C0
  52. 00000000
  53. 00000000
  54. 00000000
  55. 00000000
  56. 00000000
  57. 00000000
  58. *MASK FOLLOWS
  59. 00000000
  60. 00000000
  61. 00000000
  62. 00000000
  63. 000FFFF8
  64. 001FFFF0
  65. 003FFFE0
  66. 007FFFC0
  67. 00FFFF80
  68. 07FFFFFF
  69. 0FFFFFFF
  70. 1FFFFFFF
  71. 3FFFFFFF
  72. 7FFFFFFF
  73. FFFFFFFF
  74. FFFFFFFF
  75. FFFFFFFF
  76. FFFFFFFF
  77. FFFFFFFF
  78. FFFFFFFF
  79. FFFFFFFA
  80. FFFFFFF0
  81. FFFFFFF0
  82. FFFFFFF0
  83. F80003E0
  84. F80003C0
  85. 00000000
  86. 00000000
  87. 00000000
  88. 00000000
  89. 00000000
  90. 00000000
  91.  
  92. * apple menu, 14 is apple symbol in HEX
  93. Type MENU
  94.   ,256
  95.   \14
  96.  
  97. Type MENU
  98.   ,260
  99.   Print Dialogs
  100.   Page Setup Dialog /S
  101.   Print Dialog /P
  102.   (-
  103.   Disable Chooser
  104.   Enable Chooser
  105.   (-
  106.   Quit /Q
  107.  
  108. * file menu
  109. Type MENU
  110.   ,257
  111.   Print Mgr
  112.   Frame Page
  113.   Frame Text
  114.   All QD Calls
  115.   QD Picture
  116.   Use TextBox
  117.   Print Bitmap
  118.   Chk SetOrigin
  119.   Justify Text
  120.   Rotate Text
  121.   Trick Grid
  122.   Trick Polygon
  123.  
  124. *Print driver test menu items
  125. Type MENU
  126.   ,261
  127.   Print Driver
  128.   Bit Map
  129.   Screen wEvt
  130.   Screen wBits
  131.   Stream Text
  132.   Send PostScript
  133.  
  134. * make a scrap of the QDPicture
  135. Type MENU
  136.   ,262
  137.   Copy QDPic
  138.   Put in ClipBoard
  139.  
  140. * edit menu
  141. Type MENU
  142.   ,258
  143.   Font
  144.  
  145. * Font menu
  146. Type MENU
  147.   ,259
  148.   Style
  149.   Plain
  150.   Bold <B
  151.   Italic <I
  152.   Underline <U
  153.   Outline <O
  154.   Shadow <S
  155.   (-
  156.   9  Point
  157.   10 Point
  158.   12 Point
  159.   14 Point
  160.   18 Point
  161.   24 Point
  162.  
  163. * text window definition
  164. Type WIND
  165.   ,257
  166.   Printer Display
  167.   40 40 330 400
  168.   Visible GoAway
  169.   0
  170.   0
  171.  
  172. *
  173. * Dialog to cancel or pause printing
  174. * it is used as a modeless dialog
  175. Type DLOG
  176.   ,257
  177.   130 125 180 375
  178.   Visible 1 NoGoAway 0
  179.   256
  180.  
  181. * Item list for the print cancel dialog
  182. Type DITL
  183.   ,256
  184.   3
  185.   BtnItem  Enabled
  186.   15 10 35 80
  187. Cancel
  188.  
  189.   BtnItem  Enabled
  190.   15 90 35 160
  191. Pause
  192.  
  193.   BtnItem  Enabled
  194.   15 170 35 240
  195. Continue
  196.  
  197. * this is the text string
  198. Type STR
  199.   ,256(4)
  200. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  201. Type CODE
  202.   example/PrintL,0
  203.