Print: Line printer output
⇒Home
⇒Contents
⇒more on Input-Output
(⇒Optional Keywords Syntax)
Bookmarks:
⇒dialog box print
⇒print under program control
⇒printer tool
⇒printing geometrical shapes
PRint is an optional keyword to the
AXIS
,
WRITE
, or
WINDOW
functions. It has no stand-alone meaning.
The
printer tool
from the toolbar (or Ctrl+P) allow to print directly:
the current script file
list-files opened via WINDOW(Title = filename)
modeless dialogs opened by
DLG
(win=...)
pixel prints of a window opened by WINDOW(...)
alternative save as bitmap
save a formatted
MatrixExplorer
dialog to file.
To
print under program control
texts, shapes, graphics use
AXIS(..., PRint=n)
! to print graphics
WRITE(..., PRint=n)
! to print numerics or strings
WINDOW(..., PRint=n)
! to redirect window output to printer
n = 1: line printer output: add any combination of n that make sense
n = 2: output to screen only
n = 4: Suspend printing
n = 8: Close printer (eject paper)
n = 16: no printer footnote (a combination of script, file, date, time, and page number
n = 32: call font manager first
n = 64: select fixed font
n = 128: print in landscape mode
n = 256: new page
n = 512: white background for AXIS generated graphs
n = 1024: call font manager and print setup dialog first
WRITE(PRint=1+64+128+8) list
! select fix font and print list in landscape mode. Close printer when done.
To
printing geometrical shapes
(rectangle, ellipse,..):
WRITE(.., PRint=n,
DeCoRation
="decoration-string")
where decoration-string can have comma-separated commands like:
"RA=4,H=20,W=10" for a red (=4, see
Colors
) rectangle, 20 characters high, 10 characters wide
"LS=1" LandScape print
"LS=0" Portrait print (no LandScape)
A
dialog box print
can be started from a dialog box button which includes a $P in the button prefix:
DLG( .., Button = "$P:PrintThisDialog")
©2000-2010 Georg Petrich, HicEst Instant Prototype Computing.
All rights reserved.
Impressum