CLIM mail archive
printing a clim stream
Date: Mon, 14 Dec 1992 10:33 EST
From: Vincent Keunen <firstname.lastname@example.org>
I'd like to print the content of what has been accumulated in a stream
(part of a pane of a frame).
When the content is only text, it's easy, I just do:
(com-print-history :name t :menu t)
(with-open-file (output-file "nanesse:to-print;history.text"
(frame-standard-output clim:*application-frame*) output-file))
(cp:execute-command "hardcopy file" "nanesse:to-print;history.text"))
But when it's general clim drawing functions, I guess I must use
with-output-to-postscript-stream and somehow replay the history of my
pane (from the parent output-record, right?) in the new postscript
Does someone have a nice and easy example of this to help me out?
Actually what you should do is re-execute the code which did the
drawing, this time doing the output to a PostScript stream instead of to
the window where you drew it before. Output histories are specific to
the window they were created for and should not be used in conjunction
with a different output stream.
Main Index |