Important: The information in this document is obsolete and should not be used for new development.
MySetBaseItem
Color picker-defined subroutine that handles akSetBaseItemrequest.If you create a color picker, it must respond to the
kSetBaseItemrequest code. The Color Picker Manager sends this code to obtain the first item in your color picker's item list. A color picker responds to thekSetBaseItemrequest code by calling a color picker-defined subroutine (for example,MySetBaseItem) to handle the request.
pascal ComponentResult MySetBaseItem ( PickerStorageHndl storage, short baseItem);
storage- A handle to your color picker's global data.
baseItem- In the dialog item list, the number of the first item that belongs to your color picker.
DISCUSSION
YourMySetBaseItemfunction allows your color picker to access its dialog items through the Dialog Manager, where
RealItemNumber = baseItem + locaItemNumber(1 based)Your function should return
noErrif successful, or an appropriate result code otherwise.