Path: utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!psuvax1!xavier!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: How to indicate EditText disable? Message-ID: Date: 28 Feb 90 16:40:47 GMT References: <375@fornax.UUCP> Sender: news@xavier.swarthmore.edu (USENET News System) Reply-To: jackiw@cs.swarthmore.edu (Nick Jackiw) Distribution: na Organization: Visual Geometry Project, Swarthmore College, PA Lines: 30 mcdonald@fornax.UUCP (Ken Mcdonald) writes: > > How does one go about "greying out" an editable text item in a modal > dialog. This is useful, for instance, if one want to indicate the item > is currently inapplicable. For that matter, how would one do it with > a StatText dialog item, such a a popup menu title? To disable theItem: GetDItem(theDialog, theItem, itemType, itemHand, box); PenPat(gray); PenMode(patBic); PaintRect(box); PenNormal; To re-enable theItem: GetDItem(theDialog, theItem, itemType, itemHand, box); InvalRect(box); Piece-O-cake. > Ken Mcdonald -- +-------------------+-jackiw@cs.swarthmore.edu / !rutgers!bpa!swatsun!jackiw-+ | nicholas jackiw | jackiw%campus.swarthmore.edu@swarthmr.bitnet | +-------------------+-VGP/MathDept/Swarthmore College, Swarthmore, PA 19081--+ "Ah...I've got this CHRONIC pain." _True Believer_