Important: The information in this document is obsolete and should not be used for new development.
PATH![]() |
![]() ![]() |
You can pass one or more control font style flag constants in the flags
field of the
control font style structure to specify the field(s) of the structure that should be applied to the control; see ControlFontStyleRec
. If none of the flags are set, the control uses the system font unless a control variant specifies use of a window font. The control font style flag constants are available with Appearance Manager 1.0 and later.
enum {
kControlUseFontMask = 0x0001,
kControlUseFaceMask = 0x0002,
kControlUseSizeMask = 0x0004,
kControlUseForeColorMask = 0x0008,
kControlUseBackColorMask = 0x0010,
kControlUseModeMask = 0x0020,
kControlUseJustMask = 0x0040,
kControlUseAllMask = 0x00FF,
kControlAddFontSizeMask = 0x0100
};
kControlUseFontMask
kControlUseFontMask
flag is set (bit 0), the font
field of the control font style structure is applied to the control.kControlUseFaceMask
kControlUseFaceMask
flag is set (bit 1), the style
field of the control font style structure is applied to the control. This flag is ignored if you specify a meta font value; see Meta Font Constants
. kControlUseSizeMask
kControlUseSizeMask
flag is set (bit 2), the size
field of the control font style structure is applied to the control. This flag is ignored if you specify a meta font value; see Meta Font Constants
.kControlUseForeColorMask
kControlUseForeColorMask
flag is set (bit 3), the foreColor
field of the control font style structure is applied to the control. This flag only applies to static text controls.kControlUseBackColorMask
kControlUseBackColorMask
flag is set (bit 4), the backColor
field of the control font style structure is applied to the control. This flag only applies to static text controls.kControlUseModeMask
kControlUseModeMask
flag is set (bit 5), the text mode specified in the mode
field of the control font style structure is applied to the control.kControlUseJustMask
kControlUseJustMask
flag is set (bit 6), the just
field of the control font style structure is applied to the control.kControlUseAllMask
kControlUseAllMask
is used, all flags in this mask will be set except kControlUseAddFontSizeMask
.kControlUseAddFontSizeMask
kControlUseAddFontSizeMask
flag is set (bit 8), the Dialog Manager will add a specified font size to the
size
field of the control font style structure. This flag is ignored if you specify a meta font value; see Meta Font Constants
.