Legacy Mac OS X Reference Library Apple Developer Connection

Version: 1.0

Posted: 2003-01-30

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample Code (“kcapApp.zip”, 17.5K)



Description

The DrawKeyCaps function draws the key caps, given a set of modifiers (in the high byte of the modifier short parameter) and KCHR and KCAP resource IDs, using the current pen in the current GrafPort. If keyCodesFlag is true, the virtual keycodes for the KCAP are drawn (in 9 point) instead of the labels. Requirements: Keywords: KCHR, KCAP, key caps

Document Revision History

Date Notes
2003-01-30Demonstrates drawing the key caps, given a set of modifiers and KCHR and KCAP resource IDs.
Did this document help you? Yes It's good, but... Not helpful...