Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 2 - Color Picker Manager Reference /
Constants and Data Types


Picker-Owned Dialog Box Structure

The PickerDialogInfo structure contains the data required to create a color picker-owned color picker dialog box.

typedef struct PickerDialogInfo {
   long        flags;      /* color picker flags */
   long        pickerType; /* color picker type */
   Point       *dialogOrigin;/* upper-left corner of dialog box */
   MenuItemInfomInfo;      /* application's Edit menu items */
} PickerDialogInfo;
Field Description
flags
Bits representing the color picker flags (page 2-8). Your application can set any of the following flags:
               #define CanModifyPalette      4  
               #define CanAnimatePalette     8  
               #define AppIsColorSyncAware   16
The color picker may set any of the following flags and override your application settings:
               #define InSystemDialog        32
               #define InApplicationDialog   64
               #define InPickerDialog        128
               #define DetachedFromChoices   256
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).
dialogOrigin
A pointer to the coordinates of the upper-left corner of the dialog box.
mInfo
Information, stored in a MenuItemInfo structure (page 2-19), about the state of your application's Edit menu.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996