Slide 9.7: Line-by-line anatomy of Menu.c (cont.) (cont.) Slide 9.9: Line-by-line anatomy of Menu.c (cont.) Home |
Menu.c
(Cont.)
case keyDownEvent:
Find
icon.
For this event, the data
field contains the structure defined below.
Access the information stored in the data
field in this way:
wchar32_t = eventP->data.keyDown.chr; struct _KeyDownEventType { WChar chr; UInt16 keyCode; UInt16 modifiers; };
chr
: The character code
keyCode
: Unused
modifiers
: 0, or one or more of the values from Graffiti
FormObjectKind objType;
enum
FormObjectKind specifies values for the objectType
field of the FormObjListType.
It specifies how to interpret the object
field.
|
|
focus = FrmGetFocus( frm );
formP
: Pointer to the form object (FormType structure)