home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!news.claremont.edu!ucivax!noiro.acs.uci.edu!network.ucsd.edu!pacbell.com!well!oster
- From: oster@well.sf.ca.us (David Phillip Oster)
- Subject: Re: Disabling Access to Edit Text Items?
- Message-ID: <Bt291s.qp@well.sf.ca.us>
- Sender: news@well.sf.ca.us
- Organization: Whole Earth 'Lectronic Link
- References: <Bt1u2r.I2H@gpu.utcs.utoronto.ca>
- Date: Sun, 16 Aug 1992 05:10:39 GMT
- Lines: 13
-
- In article <Bt1u2r.I2H@gpu.utcs.utoronto.ca> farm@gpu.utcs.utoronto.ca (B. Munroe) writes:
- >what is the best way to disable access to an edit text item in a dialog
-
- I do a GetDItem, SetDItem to change the type from an edittext item to
- a static text item. This solves the problem of the tab key trying to
- make it the active field. I do a SelIText if necessary first to make be
- a non-active field.
-
- My update procedure does the following after the system has drawn the
- static text items:
- Paintrect() with patBic as the PenMode, and "gray" as the PenPat. This
- grays out the text. Then I draw an appropriate FrameRect around the
- static text item so it looks like a grayed out edittext item.
-