home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gMonoFont, gPropFont, gCanPrint
- if gCanPrint = 0 then
- alert("The PrintOMatic Xtra is not installed. Printing is disabled.")
- exit
- end if
- 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)
- setPageNumSymbol(doc, "√û")
- setTextFont(doc, gPropFont)
- setTextSize(doc, 10)
- setTextStyle(doc, "normal,italic")
- setTextJust(doc, "left")
- drawText(doc, "PrintOMatic Xtra Documentation", point(0, -15))
- setTextJust(doc, "right")
- drawText(doc, "printed" && the date, point(w, -15))
- drawLine(doc, point(0, -12), point(w, -12))
- drawText(doc, "page √û", point(w, h + 20))
- newPage(doc)
- setGray(doc, 0)
- drawRect(doc, rect(-2, -24, w + 5, 2), 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 "docs")
- cursor(-1)
- if word 1 of the text of cast the castNum of sprite the clickOn = "Preview" then
- printPreview(doc)
- else
- if doJobSetup(doc) = 1 then
- updateStage()
- print(doc)
- end if
- end if
- set doc to 0
- end if
- end
-