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 / Setting Up a Color Picker


MySetVisibility

Color picker-defined subroutine that handles a kSetVisibility request.

If you create a color picker, it must respond to the kSetVisibility request code. The Color Picker Manager sends this code to request your color picker to hide or show itself. Your color picker should respond to the kSetVisibility request code by calling a color picker-defined subroutine (for example, MySetVisibility) to handle the request.

pascal ComponentResult MySetVisibility (
PickerStorageHndl storage,
Boolean visible);
storage
A handle to your color picker's global data.
visible
A Boolean value, where true means your color picker should make itself visible and false means invisible.
DISCUSSION
When passed true in the visible parameter, your MySetVisibility function should make your color picker visible; when passed false, your function should make your color picker invisible.

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