home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13981 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.3 KB

  1. Path: sparky!uunet!usc!rpi!bu.edu!transfer!sw.stratus.com!mcote
  2. From: mcote@sw.stratus.com (Mike Cote)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: TCL, Borders, and Printing
  5. Message-ID: <5561@transfer.stratus.com>
  6. Date: 14 Aug 92 12:49:58 GMT
  7. Sender: usenet@transfer.stratus.com
  8. Organization: Stratus Computer, Inc.
  9. Lines: 22
  10.  
  11. I had a heck of a time trying to get around what I think is a TCL bug (IMHO) in 
  12. the CBorder class.  The problem I had was with printing a bunch of CEditText
  13. panes with borders in a CPanorama.
  14.  
  15. What happened was that everything printed fine until I got down to the bottom of
  16. what was actually displayed on the screen for that window and then none of the
  17. CBorders would be printed for the rest of the CEditText panes.  The text printed
  18. fine, though.
  19.  
  20. I tracked it down to a small section of Pane_Draw in CPane.  When it takes the 
  21. intersection of the drawing area and the border rect it determines that the 
  22. border is not visible and skips drawing it.  However, it looks like the area
  23. and border rect are specified in two different coordinate sets and that is 
  24. why it failed.  Being close to 2AM I hacked in a check to always draw the border
  25. when printing but I'd like to fix it properly ASAP.
  26.  
  27. Has anyone else run into this problem?  and is my analysis of the situation 
  28. correct?  
  29.  
  30. Thanks.
  31.  
  32. mpac
  33.