Important: The information in this document is obsolete and should not be used for new development.
MyGetItemList
Color picker-defined subroutine that handles akGetItemList
request.If you create a color picker, it must respond to the
kGetItemList
request code. The Color Picker Manager sends this request code to obtain the dialog items for your color picker. A color picker responds to thekGetItemList
request code by calling a color picker-defined subroutine (for example,MyGetItemList
) to handle the request.
pascal ComponentResult MyGetItemList (PickerStorageHndl storage);
storage
- A handle to your color picker's global data.
DISCUSSION
YourMyGetItemList
function should coerce a handle for one or more dialog items into a long integer and return this as a function result. The Color Picker Manager adds these items to the color picker dialog box. If your color picker has no items to add, it should returnnil
.If your color picker saved the items in a dialog item list (
'DITL'
) resource, your color picker should use the Resource Manager functionGetResource
to obtain the handle, and the Resource Manager functionDetachResource
to detach the resource.SEE ALSO
Listing 2-19 (page 2-36) in Advanced Color Imaging on the Mac OS illustrates how to implement this function.