Article View: comp.sys.mac
Article #16604Re: How do you inactivate statText and editText items in a modeless dialog box?
From: lsr
Date: Fri, 05 Jun 1987 23:26
Date: Fri, 05 Jun 1987 23:26
32 lines
2039 bytes
2039 bytes
In article <935@apple.UUCP> han@apple.UUCP (Byron Han) writes:
>In article <1271@batcomputer.tn.cornell.edu>, steig@batcomputer.tn.cornell.edu (Mark J. Steiglitz) writes:
>>
>> I want some statText and editText items disabled (so that DialogSelect
>> doesn't return true) and inactivated (so that the text is dimmed, the
>> editText cannot be edited, and mouse clicks in the item are interpreted the
>
>Controls can be deactivate. Text cannot. You may want to go and use
>a UserItem for the StatText and EditText items (and allocate your own
>TEHandle for the EditText items) that way you get more control over
>fonts and sizes and styles.
More specifically, you can get grayed text by painting over the text with a
gray pattern in patBic (pattern bit clear) mode. This is what the Menu
Manager uses to gray out a menu item.
You should be able to define a userItem on top of your text item, which
simply draws a gray rectangle (if necessary). That way you can use the
Dialog Manager for the text editing, but gray out the text when necessary.
(I haven't tried this out, so you may have to experiment with the ordering
of the dialog items so that the gray rectangle is drawn after the text.)
--
Larry Rosenstein
Object Specialist
Apple Computer
AppleLink: Rosenstein1
UUCP: {sun, voder, nsc, mtxinu, dual}!apple!lsr
CSNET: lsr@Apple.com
Technical Details
Message-ID:
<943@apple.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!oliveb!pyramid!voder!apple!lsrReferences:
<1271@batcomputer.tn.cornell.edu> <935@apple.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!oliveb!pyramid!voder!apple!lsr From: lsr@apple.UUCP Newsgroups: comp.sys.mac Subject: Re: How do you inactivate statText and editText items in a modeless dialog box? Message-ID: <943@apple.UUCP> Date: Fri, 5-Jun-87 19:26:51 EDT Article-I.D.: apple.943 Posted: Fri Jun 5 19:26:51 1987 Date-Received: Sat, 6-Jun-87 20:28:51 EDT References: <1271@batcomputer.tn.cornell.edu> <935@apple.UUCP> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Technology Group, Apple Computer Lines: 32 Keywords: modeless dialog