Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!aramis.rutgers.edu!athos.rutgers.edu!wiechman From: wiechman@athos.rutgers.edu (NightMeower) Newsgroups: comp.sys.mac.programmer Subject: Re: Several MAC programming questions Message-ID: Date: 13 Feb 89 13:37:39 GMT References: <7236@june.cs.washington.edu> Distribution: usa Organization: Rutgers Univ., New Brunswick, N.J. Lines: 25 In article <7236@june.cs.washington.edu> marty@june.cs.washington.edu (Marty Sirkin) writes: > 1) Is there any way to "remove" quickdraw calls from a picture definition? > (clearly one could build a list of the quickdraw calls, and rebuild > the picture, but I'm looking for something simpler). Each grafport has a set of drawing routines attached to it called grafProcs of type QDProcsPtr. Color grafports similarily have CQDProcsPtr. When first opened grafProcs points to the standard Apple routines. To get rid of any and all text (unless the text is part of a bitmap), set grafProcs^.textProc := @myTextProc. myTextProc is an empty procedure, but make certain that you accept the same parameters as the Apple routines. You can override any of the drawing routines this way. Kevin -- =========================================================================== Kevin S. Wiechmann arpa: wiechman@rutgers.rutgers.edu This is only a test... for the next sixty seconds...