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