Path: utzoo!attcan!uunet!decwrl!adobe!hawley From: hawley@adobe.COM (Steve Hawley) Newsgroups: comp.sys.mac.programmer Subject: Re: Password Dialogs--what is the best way to do them? Message-ID: <3663@adobe.UUCP> Date: 9 Jul 90 16:40:35 GMT References: <36805@shemp.CS.UCLA.EDU> Reply-To: hawley@adobe.UUCP (Steve Hawley) Organization: Adobe Systems Incorporated, Mountain View Lines: 21 In article jackiw@cs.swarthmore.edu (Nick Jackiw) writes: >tj@cs.ucla.edu (Tom Johnson) writes: >> My big question is: How do I know when the user is entering text into >> the Password text edit item (as opposed to the UserName item)? The event >> record gives me no indication of which item is selected (or does it?), >> the itemHit variable doesn't tell me, and I don't where to find out. Don't sweat so much. Try this instead: Create a font with NO entries except the "undefined" character. Make the "undefined" character be a bullet or apple or a picture of Ulrich Zwingli or whatever you want. Use this font for the password TextEdit field. Magically, any and all characters typed will be this one character. Share and enjoy. Steve Hawley hawley@adobe.com -- "A blow on the head is... ...worth two in the bush." -Basil Fawlty