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