Carbon


SystemDialogInfo

Header: ColorPickerComponents.h

struct SystemDialogInfo {
    SInt32 flags; 
    SInt32 pickerType; 
    DialogPlacementSpec placeWhere; 
    Point dialogOrigin; 
    PickerMenuItemInfo mInfo;
};

Field descriptions

flags

Bits representing the color picker flags, which are described in detail in “Picker Flags”. Your application can set any of the following flags: CanModifyPalette, CanAnimatePalette, AppIsColorSyncAware. The color picker may set any of the following flags and override your application settings: InSystemDialog, InApplicationDialog, InPickerDialog, DetachedFromChoices.

pickerType

The component subtype of the color picker. If this field is set to 0, the default color picker is used (that is, the last color picker chosen by the user).

placeWhere

One of three “Dialog Placement Specifiers” with which your application can specify whether the dialog box should be centered on the deepest color screen, centered on the main screen, or placed at a specified location: kAtSpecifiedOrigin, kDeepestColorScreen, kCenterOnMainSCreen.

dialogOrigin

A point specifying placement of the upper-left corner of the dialog box, used if the placeWhere field contains the value represented by the kAtSpecifiedOrigin constant.

mInfo

Information, stored in a PickerMenuItemInfo structure, about the state of your application’s Edit menu.

The SystemDialogInfo structure contains the data required to create a system-owned dialog box for color pickers.


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