home *** CD-ROM | disk | FTP | other *** search
/ Painter Bear's Language Bridge — Italian / Bridge_ponte_itialian.iso / pc / xtras / -pmatic.dir / docs_12.txt < prev    next >
Encoding:
Text File  |  1999-09-22  |  4.1 KB  |  89 lines

  1. Printing and Print Preview
  2.  
  3. The following commands are used to print or display a print preview of a PrintOMatic document, or just about anything else you want to print out:
  4.  
  5.  
  6.     printPreview    displays an on-screen print preview of the requested item(s)
  7.     print           prints the requested item(s) to the currently selected printer
  8.     
  9.  
  10. printPreview
  11.  
  12. Syntax:    printPreview(document)
  13.           printPreview(any [, ... ])
  14.  
  15. Returns:   TRUE if the user previews all the pages in the document
  16.           FALSE if the user cancels the print preview
  17.  
  18. This function displays an on-screen facsimile of the output that the print command will generate when it is passed the same set of parameters. printPreview will display a preview of a document as well as sets of strings, sprites, cast members, lists, etc. See the print command for a complete list of the elements that can be previewed.
  19.  
  20. Typing any key or clicking in the preview window advances to the next page; typing command-period (Escape on Windows) cancels the preview without displaying all the pages. When the document can't be displayed on the main screen at 100% size (which is most of the time, unless you have a big monitor), the page is scaled to fit. 
  21.  
  22.  
  23. print
  24.  
  25. Syntax:    print member whichCastmember [,... ]
  26.           print member whichCastmember of castLib whichLib [, ... ]
  27.           print castLib whichCast  [, ... ]
  28.           print sprite whichSprite  [, ... ]
  29.           print string [, ... ]
  30.           print list [, ... ]
  31.           print document
  32.  
  33. The print command is an extension to Lingo provided by the PrintOMatic Xtra. This command is used to print one or more items to the currently selected printer. The following Director objects are printable:
  34.  
  35. type of object          what gets printed
  36. _________________________________________________________________
  37.  
  38. text field cast member  the text of the field, using the 
  39.                         specified fonts and styles
  40.  
  41. rich text cast member   the bitmap image of the cast member,
  42.                         including anti-aliasing
  43.  
  44. bitmap cast member      the cast member graphic
  45.  
  46. PICT cast member        the cast member graphic
  47.  
  48. cast library            all printable cast members in the 
  49.                         library, in cast sequence
  50.  
  51. sprite                  the cast member of the sprite
  52.  
  53. text string             the text string, in the default font 
  54.                         (Geneva 10pt on Macintosh, 
  55.                         Arial 10pt on Windows)
  56.  
  57. list                    the elements in the list
  58.  
  59. document                the contents of the PrintOMatic document
  60.  
  61. Examples:
  62.  
  63. You can print a number of objects together with a single call to the print command:
  64.  
  65.     print "Printed Output" & RETURN , member "image" , member "someText"
  66.  
  67. One of the most powerful uses of the print command is to assemble all the elements of a document into a single cast library, and print the entire cast library with one line of Lingo:
  68.  
  69.     print castLib "document"
  70.  
  71. printStage
  72.  
  73. Syntax:    printStage [grabOffscreen]
  74.  
  75. Returns:    TRUE, if printing was successful, FALSE if printing was canceled.
  76.  
  77. This function prints the contents of the Stage (or Authorware presentation window) with one command. This routine uses a "best fit" method to position the stage contents on the printed page. If the stage is wider than it is tall, the paper orientation is automatically switched to landscape mode. If the stage is exceptionally large, it is proportionally scaled to fit on the page within one-inch margins. The output is always centered on the page.
  78.  
  79. The grabOffscreen parameter affects whether the image on the stage is grabbed from the screen, or Director's offscreen buffer. The default is to grab from the offscreen buffer, which will not capture "trails", overlapping movies-in-a-window, the mouse cursor, or other windows. If grabOffscreen is false, the Xtra will take a "screen shot" of the stage, including all "trails", and any other elements that may overlap the stage.
  80.  
  81. This command is not available in projectors until you register your copy of PrintOMatic.
  82.  
  83. Examples:
  84.  
  85.     printStage        -- prints from offscreen buffer
  86.  
  87.     printStage(FALSE) -- prints a screen shot
  88.  
  89.