home *** CD-ROM | disk | FTP | other *** search
- on printDocumentation
- global gMonoFont, gPropFont
- set doc to new(xtra("PrintOMatic"))
- if not objectp(doc) then
- alert("There is no currently selected printer. Printing features are disabled.")
- else
- cursor(4)
- setDocumentName(doc, "PrintOMatic Xtra Documentation")
- setMargins(doc, rect(72, 90, 72, 72))
- set w to getPageWidth(doc)
- set h to getPageHeight(doc)
- newPage(doc)
- setGray(doc, 0)
- drawRect(doc, rect(0, -22, w + 1, 0), 1)
- setGray(doc, 100)
- newFrame(doc, rect(0, 0, w, h), 0)
- setTextJust(doc, "left")
- append(doc, member "doctitle", member "version", RETURN)
- append(doc, member "illustration", RETURN, castLib "documentation")
- cursor(-1)
- printPreview(doc)
- set doc to 0
- end if
- end
-