Article View: comp.sys.next.programmer
Article #204Printing a view in a scrollview...
From: aoml
Date: Thu, 23 Jul 1992 20:04
Date: Thu, 23 Jul 1992 20:04
18 lines
1195 bytes
1195 bytes
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
Technical Details
Message-ID:
<23JUL92.16045906@enh.nist.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!dove!enh.nist.gov!aomlShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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