[comp.sys.mac.programmer] How do I change dialog font and size?

brown@galaxy.ee.rochester.edu (Eric Brown) (01/10/89)

Distribution: 
Reply-To: brown@ee.rochester.edu (Eric Brown)
Organization: UR Dept. of Electrical Engg, Rochester NY 14627


I know I saw the method a long time ago, but I've since forgotten.
Could someone please tell me how to change the font of edit text,
static text, and normal control items of modal dialogs.  The
following is code I tried - it didn't work:
	myDialog = GetNewDailog(1400, NULL, -1L);
		/* note, the visible field in ResEdit is not checked */
	((GrafPtr)myDialog)->txFont = 4;
	((GrafPtr)myDialog)->txSize = 9;
	ShowWindow(myDialog);

It still comes up in the standard font and size.  If you could,
please respond by e-mail.

Thanks in advance.

-Eric.