[comp.sys.mac.programmer] Dialog Manager bug?

lim@iris.ucdavis.edu (Lloyd Lim) (02/16/91)

You can define a button via a CNTL resource so that it will displayed using
the window font.  This works fine if your dialog doesn't have any edit text
fields.  If it does, the button is displayed in the system font.  Is this
a bug/feature of the Dialog Manager?

One workaround is to set the edit handle attached to the dialog:

(*((DialogPeek) theDialog)->textH)->txFont = geneva;
(*((DialogPeek) theDialog)->textH)->txSize = 9;

(You'd probably also need to change the lineHeight and fontAscent fields too.)
This change displays both button and the edit field in the font you set.

This bug/feature was discovered because it also affects the Default CDEF.
Anyone noticed this before?

+++
Lloyd Lim     Internet: lim@iris.eecs.ucdavis.edu
              Compuserve: 72647,660
              US Mail: 215 Lysle Leach Hall, U.C. Davis, Davis, CA 95616