Important: The information in this document is obsolete and should not be used for new development.
SetSuiteLabel
You can use theSetSuiteLabelfunction to specify the default label associated with an icon suite.
FUNCTION SetSuiteLabel (theSuite: Handle; theLabel: Integer): OSErr;
theSuite- A handle to an icon suite.
theLabel- An integer from 1 to 7 that specifies a label for the icon suite, or 0 to set the icon suite's label to none.
DESCRIPTION
TheSetSuiteLabelfunction sets the label associated with the specified icon suite. The default label setting helps to determine which of the label colors shown in the Finder's Label menu is applied to icons of that suite when your application displays them.You can override the default label setting for a suite by specifying a label in the
transformparameter of thePlotIconSuitefunction. For example, suppose the color currently set for the third label displayed in the Finder's Label menu is red, and the color for the fourth label is green. If you set the default label for a suite usingSetSuiteLabel(theSuite,3), then draw an icon from the same suite usingPlotIconSuiteand specifyingttNonein thetransformparameter, the label color red is applied to the icon. However, if you specifyttLabel4in thetransformparameter of thePlotIconSuitefunction, the label color green is applied to the icon.RESULT CODES
noErr 0 No error paramErr -50 The theLabelparameter is greater than 7SEE ALSO
For a description of thePlotIconSuitefunction, see page 5-35.