Important: The information in this document is obsolete and should not be used for new development.
MySetVisibility
Color picker-defined subroutine that handles akSetVisibility
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 thekSetVisibility
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 andfalse
means invisible.DISCUSSION
When passedtrue
in thevisible
parameter, yourMySetVisibility
function should make your color picker visible; when passedfalse
, your function should make your color picker invisible.Your function should return
noErr
if successful, or an appropriate result code otherwise.