Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!srcsip!gorby!mnkonar From: mnkonar@gorby.SRC.Honeywell.COM (Murat N. Konar) Newsgroups: comp.sys.mac.programmer Subject: Re: Graying out a PICT Message-ID: <25393@srcsip.UUCP> Date: 12 Jul 89 23:59:13 GMT References: <5982@hubcap.clemson.edu> Sender: news@src.honeywell.COM Reply-To: mnkonar@gorby.UUCP (Murat N. Konar) Organization: Honeywell Systems & Research Center, Camden, MN Lines: 18 In article <5982@hubcap.clemson.edu> mikeoro@hubcap.clemson.edu (Michael K O'Rourke) writes: >How can one go about drawing a PICT resource grayed out? I tried setting the >penpattern to gray and calling drawpicture, but this doesn't work. Has anyone >done this before? I have a PICT button and i need to have some way of graying >it out when the button is inactive. > This is just off the top of my head but her goes: Set the foreColor to white (old style color) Set the PenMode to patOr Call PaintRect with the rect of the PICT as its argument. This should work on both Classic and Color Quickdraw Systems. ____________________________________________________________________ Have a day. :^| Murat N. Konar Honeywell Systems & Research Center, Camden, MN mnkonar@SRC.honeywell.com (internet) {umn-cs,ems,bthpyd}!srcsip!mnkonar(UUCP)