Important: The information in this document is obsolete and should not be used for new development.
MySetVisibility
Color picker-defined subroutine that handles akSetVisibilityrequest.If you create a color picker, it must respond to the
kSetVisibilityrequest code. The Color Picker Manager sends this code to request your color picker to hide or show itself. Your color picker should respond to thekSetVisibilityrequest 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
truemeans your color picker should make itself visible andfalsemeans invisible.DISCUSSION
When passedtruein thevisibleparameter, yourMySetVisibilityfunction should make your color picker visible; when passedfalse, your function should make your color picker invisible.Your function should return
noErrif successful, or an appropriate result code otherwise.