Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cs.yale.edu!pittenger-laurence From: pittenger-laurence@cs.yale.edu (Laurence Arthur Pittenger) Newsgroups: comp.sys.mac.programmer Subject: HELP! mystifying QuickDraw-related bug... Summary: cGrafPort isn't working, but why? Keywords: QuickDraw FrameRect DragGrayRgn Message-ID: <28646@cs.yale.edu> Date: 10 Feb 91 05:39:27 GMT Sender: news@cs.yale.edu Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 37 Nntp-Posting-Host: hare.zoo.cs.yale.edu Originator: pitteng@hare.CS.Yale.Edu To All -- Ok all you wizards -- here's a nasty. I'm writing a program which handles a bunch of cGrafPorts. In a sense, they "inherit" characteristics from each other, so when they're set up I copy the pertinant fields into the new one. Now, usually these cGrafPorts work just fine, but on 2 commands now, FrameRect() and DragGrayRgn(), the program >BOMBS<. My guess is that the cGrafPort is not set up correctly, because I know the parameters to the call are correct and the only other info these calls uses is, I assume, the current port -- ie my cGrafPort. The obvious solution is that the cGrafPort's pen is not set up correctly. This, however, is not the case. Likewise the foreground and background colours. I have no idea what else might be the problem, and I'm kinda stuck until I can figure this out. Thus... HEEEEEELLLLLLLLP! Apropos of all this, is there a book out there which details the ToolBox commands, telling things such as what info each commans uses/changes. Such a book would sure help me now, 'cause it would list everything that could be the problem. Thanks in advance, LP -- Laurence A. Pittenger CSNET : pittenger-laurence@cs.yale.edu BITNET : pitlaua@yalevm , pittenger-laurence@yalecs