The 'kcs#', 'kcs4', and 'kcs8' Resources
The 'kcs#', 'kcs4', and 'kcs8' Resources
With System 7.0, a keyboard color icon family is available to specify the
small icon that corresponds to each 'KCHR' resource. This color icon family
replaces the 'SICN' resource associated with each 'KCHR' resource. See the
User Interface Guidelines for details on color icon families.
Note: If the 4-bit and 8-bit icons in your application are the same
( resources 'kcs4' and 'kcs8'), then you only need to provide a 4-bit
icon.
Some differences exist between the color icon family for keyboards and the
color icon families used elsewhere in the Macintosh Operating System. First,
only small icons (16-by-16 pixels) are supplied; there are no large
keyboard icons (32-by-32 pixels). Second, the resource type for keyboard
small color icons is different from the resource type used elsewhere for small
color icons. This is to avoid resource ID conflicts because the keyboard color
icons-like the 'KCHR' resources-may have IDs anywhere in the range
0x0-0xBFFF (that is, 0 to 32767 and -32768 to -16385). The keyboard
color icon types and the equivalent standard color icon types are shown in the
Table below.
Keyboard color icon types and standard icon equivalents
Keyboard Standard icon Bit
icon type equivalent [TOKEN:25701]pth
'kcs#' 'ics#' Command
'kcs4' 'ics4' Code.
'kcs8' 'ics8' CharType
These keyboard icons are used in the Keyboard control panel and in the
Keyboard menu when it is displayed on some localized versions of the system
software. For details on the Keyboard menu, see the section entitled
Using the Keyboard Menu. The resource ID for each 'kcs#', 'kcs4', or
'kcs8' resource is the same as that of the 'KCHR' resource to which it
corresponds.