Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!ba0k+ From: ba0k+@andrew.cmu.edu (Brian Patrick Arnold) Newsgroups: comp.sys.mac.programmer Subject: DashedLines on LaserWriter Message-ID: Date: 11 Sep 89 21:05:24 GMT Organization: Mechanical Engineering, Carnegie Mellon, Pittsburgh, PA Lines: 43 Howdy Mac Developer Tech Support People and/or Proficient QuickDraw Programmers (hint as to audience): I need help making a program print better from a Mac than its Sun-III version counterpart. Macs are better, right? (!!!) In reading about support for dashed lines in tech note #91, I found that I should be using this in my program. I assume QuickDraw ignores the PicComment for dashed lines when drawing to the screen. I use MacApp, so my TView.Draw method normally calls DrawPicture and it's pretty ignorant of whether I'm printing or drawing to the screen. Presently, I fake dashed lines now by computing each point for my different dashed line types in QuickDraw. The code for this was written to mimic PostScript dashed lines on an Andrew Window Manager-based Sun-III workstation. The Sun version wrote PostScript files for printing, but the Mac version relies on MacApp's print handling. I have complete control over generating the picture, and I allow undoable copying to the clipboard. What's the recommended approach in this matter? Would it be "best" if I trapped for the piccomment when drawing to the screen? In the MacApp world, does anybody have sample starter code for this if this is what I should do? The reason why this is important is because the present version doesn't print as cleanly with the QuickDraw- based dashed-line-imitations, nor print as fast as the Sun version. Printing is very important to my users who are making technical reports and the like, and I'd hate to refer them to the Sun version for better printing! Also, until I support editing of graphs, can anybody suggest or recommend drawing programs that can deal with the dashed line piccomment, so I could at least refer my users to a Macintosh drawing program to use to edit my pictures (which happen to be graphs)? I'd appreciate help in this fact-finding endeavor. Help! - Brian