Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!ads.com!killer!usenet From: anders@verity.com (Anders Wallgren) Newsgroups: comp.sys.mac.programmer Subject: Re: hilite color Message-ID: <1991Feb12.014247.7709@verity.com> Date: 12 Feb 91 01:42:47 GMT References: <1991Feb11.200302.424@ux1.cso.uiuc.edu> Sender: usenet@verity.com (USENET News) Reply-To: anders@verity.com (Anders Wallgren) Organization: Verity, Inc., Mountain View, CA Lines: 17 In-Reply-To: rolf@sparc1.isgs.uiuc.edu (Rolf Wilson) In article <1991Feb11.200302.424@ux1.cso.uiuc.edu>, rolf@sparc1 (Rolf Wilson) writes: > Question 1: How do you hilite something in the user-selected > hilite color? I don't mean text. InvertRect always? > uses black. > Question 2: Is there a way of doing the above while still > using the "old" color model? >-- In pascal, call: BitClr(Ptr(HiliteMode, pHiliteBit)); before calls to InvertRect, InvertRgn, etc. This is compatible with all versions of QuickDraw and doesn't what the bit-depth of the monitor is. This is documented in the Color QuickDraw chapter in IM V, I think.