![]() |
PickerSetVisibilityProcPtr |
||||
Header: | ColorPickerComponents.h | Carbon status: | Supported | |
Defines a pointer to a color picker-defined set visibility callback function. Your set visibility callback function makes your color picker visible or invisible.
typedef ComponentResult(* PickerSetVisibilityProcPtr) ( SInt32 storage, Boolean visible );
You would declare your function like this if you were to name it MyPickerSetVisibilityCallback:
ComponentResult MyPickerSetVisibilityCallback ( SInt32 storage, Boolean visible );
A handle to your color pickers global data.
A Boolean value, where true means your color picker should make itself visible and false means invisible.
Your function should return noErr if successful, or an appropriate result code otherwise.
If you create a color picker, it must respond to the kSetVisibility request code, by calling a color picker-defined subroutine (MyPickerSetVisibilityCallback, for example).
When you create a color picker, the Color Picker Manager uses the Component Manager to request services from your color picker. The code for your color picker should be contained in a resource. The Component Manager expects that the entry point into this resource is a color picker-defined dispatch function. For information on how to create this dispatch function, see the Component Manager callback, ComponentRoutineProcPtr.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)