Important: The information in this document is obsolete and should not be used for new development.
Using the Icon Utilities
This section explains how you can use routines in the Icon Utilities to draw icons in your application's windows (or dialog boxes and menu items if needed).Most of the Icon Utilities routines are available only in System 7 and later. To
determine whether they are available, call theGestalt
function with the gestaltIconUtilitiesAttr selector and check the value of theresponse
parameter. If the bit indicated by the constantgestaltIconUtilitiesPresent
is set, then the Icon Utilities are available.
CONST gestaltIconUtilitiesAttr = 'icon'; {Icon Utils attributes} gestaltIconUtilitiesPresent = 0; {check this bit in the } { response parameter}TheGetIcon
,PlotIcon
,GetCIcon
,PlotCIcon
, andDisposeCIcon
routines are available in both System 6 and System 7.
Subtopics
- Drawing Icons in an Icon Family
- Drawing Icons That Are Not Part of an Icon Family