CLIM mail archive

[Prev][Next][Index][Thread]

Output recording and presentations



   Date:	Wed, 13 Oct 1993 14:33:59 -0700
   From:	Nichael Cramer <ncramer@bbn.com>

   I tried something similar here.  WITH-OUTPUT-TO-OUTPUT-RECORD was fine when
   I wanted just output-records.  However I could never figure out how to get
   a real honest-to-goodness presentation out of it (as Brian describes in his
   original note).

WITH-OUTPUT-TO-OUTPUT-RECORD causes all the output records generated
inside the body to become children of a new "root" output record,
rather than be inserted in the stream's "history" output record.  The
return value of the macr is this record.

So, the presentation generated by a call to PRESENT inside the
W-O-T-O-R context will be an inferior of the root record:

> (with-output-to-output-record (win) (present 234234 'integer :stream win))
#<CLIM::LINEAR-OUTPUT-RECORD /x 81:135 y 48:62/ 15F79C6>
> (clim::output-record-elements *)
(#<STANDARD-PRESENTATION INTEGER 234234 /x 0:54 y 0:14/ 15F88C6>)
> 


Main Index | Thread Index