home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5201 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.1 KB

  1. Path: sparky!uunet!dove!enh.nist.gov!aoml
  2. From: aoml@enh.nist.gov
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Printing a view in a scrollview...
  5. Message-ID: <23JUL92.16045906@enh.nist.gov>
  6. Date: 23 Jul 92 20:04:59 GMT
  7. Sender: news@dove.nist.gov
  8. Organization: NIST
  9. Lines: 18
  10.  
  11. I have a scrollview in an application of mine.  I need to be able to print the
  12. section of the contentView that appears within the clip view.  Here is the
  13. command I use to do this:
  14. [[[[NXApp keyWindow] view] superview] printPSCode:sender]
  15.  
  16. This works great.  But! I would like to put some sort of frame or bounding box
  17. around the view that is going to be printed out.  Where should I implement the
  18. extra drawing?  I guess the best place to put it would be inside of the
  19. clip view, but, alas, there is no source code anywhere for such a thing.  It
  20. would appear that the clip view is created automatically, and I can not get to
  21. it.  The second place I could put it, would be in the actual view, modifying
  22. the drawSelf:: method.  But I am not sure about the best way to do this.  Can
  23. someone (some people) please give me some pointers here?  It would be
  24. appreciated.
  25.  
  26. Thanks in advance,
  27.  
  28. Kevin
  29.