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 /
Color Picker-Defined Functions / Responding to Requests to Return and Set Color Picker Information


MySetOrigin

Color picker-defined subroutine that handles a kSetOrigin request.

If you create a color picker, it must respond to the kSetOrigin request code. The Color Picker Manager sends this code to inform your color picker that the window origin for the color picker has changed. A color picker responds to the kSetOrigin request code by calling a color picker-defined subroutine (for example, MySetOrigin) to handle the request.

pascal ComponentResult MySetOrigin (
PickerStorageHndl storage, 
Point where);
storage
A handle to your color picker's global data.
where
The new window origin for the color picker.
DISCUSSION
If your color picker maintains any information based on the local coordinate system of its dialog box, your MySetOrigin function should update that information.

The Color Picker Manager moves all dialog box items automatically in response to a new window origin for the dialog box, so it is not necessary for your color picker to move its items.

Your function should return noErr if successful, or an appropriate result code otherwise.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996