mcdonald@fornax.UUCP (Ken Mcdonald) (02/28/90)
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? I've looked at
the TE, Dialog Manager, and Control Manager chapters of Inside Mac,
and can't see how to do this.
Thanks for the advice,
Ken Mcdonald
{mcdonald@cs.sfu.ca}jackiw@cs.swarthmore.edu (Nick Jackiw) (03/01/90)
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_