![]() |
Control Font Style Flag Constants |
Header: Controls.h |
enum { kControlUseFontMask = 1, kControlUseFaceMask = 2, kControlUseSizeMask = 4, kControlUseForeColorMask = 8, kControlUseBackColorMask = 16, kControlUseModeMask = 32, kControlUseJustMask = 64, kControlUseAllMask = 255, kControlAddFontSizeMask = 256 };
If the kControlUseFontMask flag is set (bit 0), the font field of the control font style structure is applied to the control.
If the 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
If the 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
If the 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.
If the 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.
If the 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.
If the kControlUseJustMask flag is set (bit 6), the just field of the control font style structure is applied to the control.
If kControlUseAllMask is used, all flags in this mask will be set except kControlUseAddFontSizeMask.
If the 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
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
These control font style flag constants are available with Appearance Manager 1.0 and later.
© 2000 Apple Computer, Inc. (Last Updated 5/8/2000)