Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
adding Support of Function keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding Support of Function keys



Hi,

I needed to add F5 support to one of my menu Items, so I've modified that
menu item entry in the 'xmnu' resource to use kMenuNoCommandModifier and put
F5 key code 0x73 in the Keyboard glyph field.
It seems to work fine but the glyph is drawn in the menu in a very small
font in OS 9 and in Bold in OS X. even though I put 0 in the font ID for
that menu item (and all my menu entries).
I noticed in the menu manager documentation that the appearance manager will
use the "keyboard" font to draw the item.
"Keyboard glyph. A symbol representing a menu item's modifier key. In
Appearance 1.0, if the value in this field is zero, the keyboard glyph uses
the system font. In Appearance 1.0.1, if the value in this field is zero,
the keyboard glyph uses the keyboard font; see Table 1-1 . Use of the
keyboard font (rather than the system font) provides a consistent user
interface across applications, since a modifier key's symbol will not change
regardless of what system font is running. If the value in this field is
nonzero, you can override the character code to be displayed with a
substitute glyph. "


so How can I change that keyboard font to sys font or is there any other way
to support Function keys


another question: Is there an easy way to add support of function keys to
non menu items.



Thanks
Maged




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.