Important: The information in this document is obsolete and should not be used for new development.
MySetOrigin
Color picker-defined subroutine that handles akSetOrigin
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 thekSetOrigin
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, yourMySetOrigin
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.