Path: utzoo!attcan!uunet!seismo!dimacs.rutgers.edu!mips!apple!apple.COM!han From: han@apple.COM (Byron Han, Project Scapegoat) Newsgroups: comp.sys.mac.programmer Subject: Re: Hiding editable text Message-ID: <9096@goofy.Apple.COM> Date: 11 Jul 90 22:46:06 GMT References: <25533@cs.yale.edu> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. - N&C Lines: 25 In article <25533@cs.yale.edu> tarr-michael@CS.Yale.EDU (michael tarr) writes: > I have a modal dialog box with some radio buttons and associated > editable text fields. When a button is clicked I want the appropriate > text field to appear, when its opponent is clicked I wish the field to > disappear and become uneditable (not just hidden as in drawing over > it)... What I like to do is to change the editText item to a statText item. use HideDItem(), GetDItem(), SetDItem(), ShowDitem() in that order. I also like to add a dimmed outline box around the (now) statText item in the same position as the outline box for the editText item. +-------------------------------------------------------------------------+ | Disclaimer: Apple has no connection with my postings. | +-------------------------------------------------------------------------+ Byron Han, CommToolbox Architect "Not Working 100 hrs/wk and loving it!" Apple Computer, Inc. -------------------------------- 20525 Mariani Ave, MS 69L Internet: han@apple.COM Cupertino, CA 95014 UUCP:{sun,voder,nsc,decwrl}!apple!han -------------------------------- GENIE:BYRONHAN CompuServe:72167,1664 ATTnet: 408-974-6450 Applelink:HAN1 HAN1@applelink.apple.COM ---------------------------------------------------------------------------