Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!thorin!unc!steele From: steele@unc.cs.unc.edu (Oliver Steele) Newsgroups: comp.sys.mac.programmer Subject: Re: Locking the "chooser" user name? Message-ID: <8535@thorin.cs.unc.edu> Date: 17 Jun 89 04:19:49 GMT References: <1889@dogie.macc.wisc.edu> Sender: news@thorin.cs.unc.edu Reply-To: steele@unc.cs.unc.edu (Oliver Steele) Organization: University Of North Carolina, Chapel Hill Lines: 41 keir@vms.macc.wisc.edu (Rick Keir, MACC) writes: >In article <835@unocss.UUCP>, dent@unocss.UUCP (Dave Caplinger) writes... > >>Can anyone suggest a way to set the "chooser" username once and then prevent >>it from being changed in the future? [....] >> [....] > Therefore, the cleanest solution I know is to make yourself >a modified chooser, install it, and hope it doesn't get replaced >too often by a user with his/her own Font/DA mover. To modify: >get ResEdit, and a copy of the chooser in the Font/DA mover >"suitcase" file. Open this file with ResEdit, and edit the >dialog box which contains the template for the chooser's main >dialog. On my system (6.0.2) this is "DITL -16000" but your >mileage may vary; it should look familiar when you see it. >Expand the dialog box & put the edit text field for username >out of the original rectangle; then close back to normal >dimensions. Voila: all the items are present bu the >user cannot edit the field. (My thanks to Chuck Hutchins, >the Apple Education Coordinator here, for this idea). Almost. You can't see the edit field, but you can still type into it. Moreover, it's still selected when you call up the Chooser, so any characters you type go into it by default. On my system (Mac II; System 6.0.0; Chooser 3.3), changing the type of the dialog item from editable text to static text did the trick. It still shows up in the Chooser window (as white on black since SelIText works on static text too, at least on my machine), and the cursor still changes to an ibeam while it's over the text, but clicking and typing don't change the string in any way. You might want to test this behavior on all the models of Mac in your labs. It's an undocumentated feature that SelIText, which Chooser calls on that dialog item, does something reasonable on static text instead of, say, blowing up. --------------------------------------------------------------------------- Oliver Steele ...!decnet!mcnc!unc!steele UNC-CH Linguistics steele@cs.unc.edu