Path: utzoo!utgpu!watserv1!watmath!att!rutgers!gatech!psuvax1!wuarchive!usc!apple!well!smoke From: smoke@well.sf.ca.us (Nicholas Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: How do I change Dialog font size? Message-ID: <21229@well.sf.ca.us> Date: 18 Oct 90 00:10:22 GMT References: <1990Oct9.125203.1@mel.cipl.uiowa.edu> Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 34 In article <1990Oct9.125203.1@mel.cipl.uiowa.edu> wolf@mel.cipl.uiowa.edu writes: >How does one change the size of editable and static text items in dialogs? > >I only want to change it for STAT and EDIT text items, not the other controls. >MJ Wolf Mark the DLOG as invisible in ResEdit, if you use GetNewDialog, or in the call to NewDialog, if you use that. Then, as soon as you have the dialogPtr, use quickdraw to change the font. e. g. theDLOG:=GetNewDialog(129,nil,pointer(-1)); if theDLOG<>nil then begin {Successfully allocated} SetPort(theDLOG); {Switch to the invisible dialog window} TextFont(1); {Switch to application font} TextSize(9); {Size 9} ShowWindow(theDLOG); ... end; This will affect only the statText and editTxt font--buttons, etc, will still use the system font. Alternately, if you're willing to limit yourself to color machines, check out the ictb resource description in Inside Mac V. It's convoluted, but will allow any combination of fonts and sizes (and colors and styles) within a single dialog. -- --- * --- Nicholas Jackiw Smoke@well.sf.ca.us | Jackiw@cs.swarthmore.edu Key Curriculum Press, Inc. Applelink: D3970 | (415) 548-2304 --- * ---