Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!umd5!mimsy!oddjob!gargoyle!att!ihnp4!poseidon!ech From: ech@poseidon.UUCP (Edward C Horvath) Newsgroups: comp.sys.mac.programmer Subject: Re: Re: Dialog Font Control Message-ID: <459@poseidon.UUCP> Date: 22 Jul 88 19:27:29 GMT References: <6322@altaira.srcsip.UUCP> Organization: AT&T Information Systems, Lincroft, NJ Lines: 23 > Bob Hablutzel writes in response to a question I don't remember seeing: > >Try setting the global variable DAFont. This controls the font > > used by dialogs. > My understanding is that only Text Items will use the new font,ie. Control > titles (Buttons, CheckBoxes, RadioButtons are all controls) still use the > system font. The global is DlgFont (short at $AFA) and only affects editText and staticText items. A cleaner way is to use SetDAFont (fontNum). If you want controls to use the same font, it gets a bit hairier: - define the controls as separate resources. Add useWSFont (8) to the control definition ID (e.g. pushButProc+useWSFont for a standard button). - in the DITL, specify resCtrl+ctrlItem as the type, and give the control's resID as the data for the item. All of which may be more trouble than it's worth in the context of doing dialogs. If you want a button in one of your own (non-dialog) windows, then the useWSFont flag makes some sense. =Ned Horvath=