Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!ml10+ From: ml10+@andrew.cmu.edu (Michael A. Libes) Newsgroups: comp.sys.mac.programmer Subject: Re: Yet Another Question (how to draw gray text) Message-ID: Date: 8 Mar 90 22:22:19 GMT References: <408@fornax.UUCP> Distribution: na Organization: Class of '91, Carnegie Mellon, Pittsburgh, PA Lines: 15 In-Reply-To: <408@fornax.UUCP> >I'm trying to use TextBox() to draw "grayed out" text, by first >making a call to PenPat(gray). Since the text is still black, I >surmise TE doesn't bother looking at the GrafPort's pen to determine >is drawing characteristics. Question--is there and easy way to >draw gray text within a box? (I imagine DrawString would do the >graying, but IM says it doesn't bound to a rect.) 1) Draw the Text normally 2) set PenPat(gray) 3) set PenMode(patBic) /* maybe its notPatBic */ 4) do a PaintRect() Using different modes will produce slightly different results. - Luni