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


Application-Owned Dialog Box Structure

The AddPickerToDialog function (page 2-39) places a color picker into a dialog box. An application using the AddPickerToDialog function specifies a dialog box in an ApplicationDialogInfo structure.

typedef struct ApplicationDialogInfo {
   long        flags;      /* color picker flags */
   long        pickerType; /* color picker type */
   DialogPtr   theDialog;  /* pointer to dialog box */
   Point       pickerOrigin;/* upper-left corner of dialog box */
   MenuItemInfomInfo;      /* application's Edit menu items */
} ApplicationDialogInfo;
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 AppIsColorSyncAware16
The color picker may set any of the following flags and override your application settings:
               #define InSystemDialog     32
               #define InApplicationDialog64
               #define InPickerDialog     128
               #define DetachedFromChoices256
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 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