Carbon


Dialog Feature Flag Constants

Header: Dialogs.h

enum {
    kDialogFlagsUseThemeBackground = 1,
    kDialogFlagsUseControlHierarchy = 2,
    kDialogFlagsHandleMovableModal = 4,
    kDialogFlagsUseThemeControls = 8
};

Constant descriptions

kDialogFlagsUseThemeBackground

If this bit (bit 0) is set, the Dialog Manager sets the dialog box’s background color or pattern.

kDialogFlagsUseControlHierarchy

If this bit (bit 1) is set, the Dialog Manager creates a root control in the dialog box and establishes an embedding hierarchy. Any dialog items become controls once the embedding hierarchy is established.

kDialogFlagsHandleMovableModal

If this bit (bit 2) is set, and the dialog box is a movable modal (specify the kWindowMovableModalDialogProc window definition ID), the Dialog Manager handles movable modal behavior such as dragging a dialog box by its title bar or switching out of the application by clicking in another one.

kDialogFlagsUseThemeControls

If this bit (bit 3) is set, the Dialog Manager creates Appearance-compliant controls in the dialog box directly. Otherwise, push buttons, checkboxes, and radio buttons will be displayed in their pre-Appearance forms when systemwide Appearance is off.

You can set these bits in the dialog flags field of the extended dialog resource or pass them in the inFlags parameter of NewFeaturesDialog to specify the dialog box’s Appearance-compliant features. Dialog feature flag constants are available with Appearance Manager 1.0 and later.


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