Carbon


ApplicationDialogInfo

Header: ColorPickerComponents.h

struct ApplicationDialogInfo {
    SInt32 flags; 
    SInt32 pickerType; 
    DialogRef theDialog; 
    Point pickerOrigin; 
    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).

theDialog

A pointer to the dialog box to which to add the color picker specified to the AddPickerToDialog function.

pickerOrigin

The coordinates of the upper-left corner of the color picker.

mInfo

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

AddPickerToDialog places a color picker into a dialog box specified in an ApplicationDialogInfo structure.


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