Article View: comp.sys.mac
Article #16596Re: How do you inactivate statText and editText items in a modeless dialog box?
From: han
Date: Fri, 05 Jun 1987 16:57
Date: Fri, 05 Jun 1987 16:57
29 lines
2091 bytes
2091 bytes
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
> same as mouse clicks in the blank part of the dialog box) in a modeless dialog
> box.
>
> I have been able to get the items disabled using ResEdit, but I have not
> been able to inactivate them. I have been using HiliteControl to inactivate
> chkCtrl and radCtrl items. Is there an equivalent procedure for statText
> and editText items?
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.
=====================================================================
Byron Han | UUCP: {sun,voder,nsc,mtxinu,dual}!apple!han
Apple Computer, Inc. | CSNET: han@apple.csnet
20525 Mariani Ave, | ATTNet: 408-973-6450
Cupertino, CA 95014 | GENIE: BYRONHAN
MS 27Y | CSERVE: 72167,1664
=====================================================================
All opinions and statements do not necessarily represent those of my
employer, Apple Computer Inc.
=====================================================================
Technical Details
Message-ID:
<935@apple.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!husc6!think!ames!oliveb!pyramid!voder!apple!hanReferences:
<1271@batcomputer.tn.cornell.edu>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!husc6!think!ames!oliveb!pyramid!voder!apple!han From: han@apple.UUCP Newsgroups: comp.sys.mac Subject: Re: How do you inactivate statText and editText items in a modeless dialog box? Message-ID: <935@apple.UUCP> Date: Fri, 5-Jun-87 12:57:35 EDT Article-I.D.: apple.935 Posted: Fri Jun 5 12:57:35 1987 Date-Received: Sat, 6-Jun-87 19:38:03 EDT References: <1271@batcomputer.tn.cornell.edu> Organization: Apple Computer, Inc., Cupertino, USA Lines: 29 Keywords: modeless dialog