Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!dog.ee.lbl.gov!nosc!crash!gnh-tff.cts.com!dzimmerman From: dzimmerman@gnh-tff.cts.com (Daniel Zimmerman) Newsgroups: comp.sys.apple2 Subject: Re: Hidden Dialog Input Message-ID: <7762@crash.cts.com> Date: 28 Feb 91 00:36:10 GMT Sender: root@crash.cts.com Lines: 22 >> I'd like to enter text into a dialog box without it appearing on the >> screen... Well, the LineEdit Extended Control supports a great little feature called a "password field", which lets you do just that! Unfortunately, Extended Controls are not really supported in dialogs. If you use NewWindow2 to make a dialog-like box and TaskMaster to treat it modally, it will work, or you can use the DTS FakeModalDialog routines (available from apple.com, I'm sure)... Anyway, to make the LE control a "password field", just set the high-order bit of the "maxSize" word in the control template to equal 1. The default character to echo is "*" - to change it, put the ASCII value of the character you want to echo in the "lePWChar" field of the LineEdit record for the control (the last word in the LineEdit record, at offset $38). ------------------------------------------------------------------------------ Daniel M. Zimmerman InterNet - dzimmerman@gnh-tff.cts.com TFF Enterprises America Online - Surak TFF CompuServe - 76407,2246 "Learn reason above all. Learn clear thought; learn to know what is from what seems to be, and what you wish to be. This is the key to everything: the truth of reality, the reality of truth. What IS will set you free." - Surak Of Vulcan