home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / lisp / mcl / 1108 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  2.0 KB

  1. Path: sparky!uunet!wupost!uwm.edu!rutgers!apple!cambridge.apple.com!@explorer.dgp.toronto.edu:markt@dgp.toronto.edu
  2. From: markt@dgp.toronto.edu ("Mark A. Tapia")
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re:  window-hardcopy for fred dialog items
  5. Message-ID: <92Jul30.213026edt.144123@explorer.dgp.toronto.edu>
  6. Date: 31 Jul 92 01:30:12 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 36
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10. Original-To: djskrien@COLBY.EDU
  11. Original-Cc: info-mcl@cambridge.apple.com
  12.  
  13. Dale J. Skrien (djskrien@colby.edu) writes:
  14.  On page 493 in the manual for MCL 2.0 final, it says that window-hardcopy
  15.  works for Fred windows or Fred dialog items.  However, when I create a
  16.  window with a scrolling-fred-dialog-item (which I assign to a variable x)
  17.  and then call
  18.    (window-hardcopy x)
  19.  I get an error message:  "No applicable method for args:
  20.  (#<ccl::scrolling-fred-dialog-item #x51E179>) to
  21.  #<standard-generic-function window-hardcopy #x47A396>."
  22.  
  23. You're right - there are no methods defined for scrolling-fred-dialog-items.
  24. Here's the result of inspecting the ccl::window-hardcopy function:
  25.  #<STANDARD-GENERIC-FUNCTION WINDOW-HARDCOPY #x2808AE>
  26.  Name: WINDOW-HARDCOPY
  27.  Arglist: (WINDOW &OPTIONAL (SHOW-DIALOG? T))
  28.  Methods: (#<STANDARD-METHOD WINDOW-HARDCOPY (FRED-WINDOW)>)
  29. And the standard version doesn't know how to print any other windows.
  30.  
  31. If you want to define your own methods for printing the contents of
  32. a window (print-contents), I've contributed print-utils.lisp to the 
  33. contrib directory.  This includes methods for printing windows
  34. window-hardcopy which recursively prints the subviews of the window
  35. after drawing a box the size of the window. The subviews are drawn
  36. using print-contents. Print-contents is defined for
  37.   SIMPLE-VIEW
  38.   BUTTON-DIALOG-ITEM
  39.   STATIC-TEXT-DIALOG-ITEM
  40.   CCL::BASIC-EDITABLE-TEXT-DIALOG-ITEM
  41.   VIEW
  42.   WINDOW
  43. You can add other print-contents routines to print other types of
  44. views.  The window-hardcopy routine supports reduction/enlargement,
  45. treating fred-windows separately from non-fred windows.
  46.  
  47.  
  48. mark
  49.