Carbon


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
};

Constant descriptions

kControlUseFontMask

If the kControlUseFontMask flag is set (bit 0), the font field of the control font style structure is applied to the control.

kControlUseFaceMask

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 “Meta Font Constants”.

kControlUseSizeMask

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 “Meta Font Constants”.

kControlUseForeColorMask

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.

kControlUseBackColorMask

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.

kControlUseModeMask

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.

kControlUseJustMask

If the kControlUseJustMask flag is set (bit 6), the just field of the control font style structure is applied to the control.

kControlUseAllMask

If kControlUseAllMask is used, all flags in this mask will be set except kControlUseAddFontSizeMask.

kControlAddFontSizeMask

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 “Meta Font Constants”.

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.

VERSION NOTES

These control font style flag constants are available with Appearance Manager 1.0 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)