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

  1. Adding Pages and Setting the Current Page
  2.  
  3. The following routines are used to add new pages to your document, or set the "current" page, where subsequent text and graphic elements will be placed:
  4.  
  5.     newPage    Create a new page
  6.     setPage    Set the "current" page
  7.     
  8.  
  9. About the Master Page
  10.  
  11. Page 0 of each document is the document's master page. The master page is the default "current" page of a newly created document, or one that has been cleared by a call to reset. Any text or graphic element added to the master page will be drawn on every page of the document, beneath the contents of each individual page. Calling setPage with a value of 0 will set the master page as the current page of the document.
  12.  
  13.  
  14. newPage
  15.  
  16. Syntax:    newPage(document)
  17.  
  18. Returns:   the page number of the newly created page
  19.  
  20. The newPage function adds a page to the PrintOMatic document and makes it the current page. It returns the page number of the newly created page.
  21.  
  22. NOTE: If you want your document to print, it must have at least one page. A common mistake is inadvertently add a number of elements to the master page  ‚Äî instead of page 1 ‚Äî of a document by forgetting to call newPage beforehand. The resulting document will not print because it contains no body pages.
  23.  
  24.  
  25. setPage
  26.  
  27. Syntax:    setPage document, pageNumber
  28.  
  29. The setPage command sets the "current" page of the document, where subsequent text and graphic elements added to the document will be placed. If the pageNumber value is greater than the number of pages currently in the document, new pages will be added, and the requested page will still become the "current" page.
  30.  
  31. Calling setPage with a value of 0 will set the master page to be the current page. Any text or graphic element added to the master page will be drawn on every page of the document, beneath the contents of each individual page.
  32.  
  33.  
  34.