Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!intercon!amanda@intercon.com From: amanda@intercon.com (Amanda Walker) Newsgroups: comp.sys.mac.programmer Subject: Re: How does one set a single edittext item's font in a dialog? Message-ID: <1569@intercon.com> Date: 27 Nov 89 02:33:36 GMT References: <21431@ut-emx.UUCP> Sender: news@intercon.com Reply-To: amanda@intercon.com (Amanda Walker) Lines: 22 In article <21431@ut-emx.UUCP>, rdd@walt.cc.utexas.edu (Robert Dorsett) writes: > I have > several edittext items in a modeless dialog. I want one of them to be in > monaco 9, the rest in Chicago 12. The main problem you will run into is that the Dialog Manager uses a single TextEdit record for *all* of the editText items. As you click on different items (or hit the tab key) it changes where this TextEdit record sits, and points the hText field at the contents of the item. The simplest way to get the effect you want would probably be to take the item that's supposed to be monaco 9, make it a UserItem, and handle clicks and keystrokes in it yourself with a dialog filter procedure. This way you can maintain your own TextEdit record for that particular item, and thus have full control over the font, size, etc. Handling the tab key and the insertion point could be hairy, though... Amanda Walker InterCon Systems Corporation amanda@intercon.com --