Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh From: earleh@eleazar.dartmouth.edu (Earle R. Horton) Newsgroups: comp.sys.mac Subject: Re: Hilighting ("locking") User Name text in Chooser? Message-ID: <15923@dartvax.Dartmouth.EDU> Date: 4 Oct 89 05:18:31 GMT References: <4307@go.sei.cmu.edu> Sender: news@dartvax.Dartmouth.EDU Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton) Organization: Thayer School of Engineering Lines: 32 In article <4307@go.sei.cmu.edu> rek@sei.cmu.edu (Bob Kubiak) writes: >For reasons I needn't elaborate on, we'd like to be able to prevent (some >class of) users from being able to edit/change the text in the User Name >field of the Chooser once it has been set for them. [Failed attempts to lock text field in Chooser dialog template using ResEdit.] I don't think you can do this by modifying the Chooser dialog, but you can certainly prevent the Chooser from modifying the user name string in the System File. Open the System file, or suitcase file, which contains the Chooser using ResEdit. Open the 'DRVR' resource named "Chooser" as 'GNRL'. Make the following change. A9E2 A9AA 4E5E 4E75 -> 4E71 A9AA 4E5E 4E75 This prevents the Chooser from copying the text from the User Name editItem to the 'STR ' resource in the system file. The user can now change the User Name field in the box as often as he likes, but the change never takes effect. The LaserWriter driver, etc. will always use the approved User Name. You could initially set the user name using some other method, since the modified Chooser no longer will do so. I recommend that if you actually do this, you rename the Chooser so people know when they are working with a disabled copy. This works with "Chooser" from System Tools 6.0.3. Earle R. Horton