Carbon


Picker Messages

Header: ColorPickerComponents.h

enum {
    kInitPicker = 0,
    kTestGraphicsWorld = 1,
    kGetDialog = 2,
    kGetItemList = 3,
    kGetColor = 4,
    kSetColor = 5,
    kEvent = 6,
    kEdit = 7,
    kSetVisibility = 8,
    kDrawPicker = 9,
    kItemHit = 10,
    kSetBaseItem = 11,
    kGetProfile = 12,
    kSetProfile = 13,
    kGetPrompt = 14,
    kSetPrompt = 15,
    kGetIconData = 16,
    kGetEditMenuState = 17,
    kSetOrigin = 18,
    kExtractHelpItem = 19
};

Constant descriptions

kInitPicker

After receiving this request code, a color picker initializes any private data that it needs. See PickerInitProcPtr for more information about how a color picker should respond to this request code.

kTestGraphicsWorld

After receiving this request code, a color picker determines whether it can operate on the user’s system. See PickerTestGraphicsWorldProcPtr for more information about how a color picker should respond to this request code.

kGetDialog

After receiving this request code, a color picker returns NULL if it uses the default dialog box, or it returns a pointer to its own dialog box. See PickerGetDialogProcPtr for more information about how a color picker should respond to this request code.

kGetItemList

After receiving this request code, a color picker returns a list of items for display in a color picker dialog box. See PickerGetItemListProcPtr for more information about how a color picker should respond to this request code.

kGetColor

After receiving this request code, a color picker returns a color—either the original color for the color picker or the new color selected by the user. See PickerGetColorProcPtr for more information about how a color picker should respond to this request code.

kSetColor

After receiving this request code, a color picker sets either the original color or the new color. See PickerSetColorProcPtr for more information about how a color picker should respond to this request code.

kEvent

After receiving this request code, a color picker performs any special processing for an event. See PickerEventProcPtr for more information about how a color picker should respond to this request code.

kEdit

After receiving this request code, a color picker performs an editing command or lets the Dialog Manager handle the command. See PickerEditProcPtr for more information about how a color picker should respond to this request code.

kSetVisibility

After receiving this request code, a color picker changes its visibility. See PickerSetVisibilityProcPtr for more information about how a color picker should respond to this request code.

kDrawPicker

After receiving this request code, a color picker redraws itself. See PickerDisplayProcPtr for more information about how a color picker should respond to this request code.

kItemHit

After receiving this request code, a color picker responds to an event in a dialog box item. See PickerItemHitProcPtr for more information about how a color picker should respond to this request code.

kSetBaseItem

After receiving this request code, a color picker sets the base item for dialog box items. See PickerSetBaseItemProcPtr for more information about how a color picker should respond to this request code.

kGetProfile

After receiving this request code, a color picker returns a handle to its destination color-matching profile. See PickerGetProfileProcPtr for more information about how a color picker should respond to this request code.

kSetProfile

After receiving this request code, a color picker changes its destination color-matching profile. See PickerSetProfileProcPtr for more information about how a color picker should respond to this request code.

kGetPrompt

After receiving this request code, a color picker returns its prompt string. See PickerGetPromptProcPtr for more information about how a color picker should respond to this request code.

kSetPrompt

After receiving this request code, a color picker sets its prompt string. See PickerSetPromptProcPtr for more information about how a color picker should respond to this request code.

kGetIconData

After receiving this request code, a color picker returns its script code and the resource ID of its icon family. See PickerGetIconDataProcPtr for more information about how a color picker should respond to this request code.

kGetEditMenuState

After receiving this request code, a color picker returns information about its edit menu. See PickerGetEditMenuStateProcPtr for more information about how a color picker should respond to this request code.

kSetOrigin

After receiving this request code, a color picker updates any information it maintains about the local coordinate system of its dialog box. See PickerSetOriginProcPtr for more information about how a color picker should respond to this request code.

kExtractHelpItem

After receiving this request code, a color picker returns information about its help balloons. See PickerExtractHelpItemProcPtr for more information about how a color picker should respond to this request code.

When a color picker receives a request code from the Component Manager, the color picker determines the nature of the request, performs the appropriate processing, sets an error code if necessary, and returns an appropriate function result to the Component Manager. These request codes are defined by the PickerMessages enumeration.


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