Slide 9.4: Menu.c Slide 9.6: Line-by-line anatomy of Menu.c (cont.) Home |
Menu.c
FtrGet( sysFtrCreator, sysFtrNumROMVersion, &romVersion );
creator
:
Creator ID, which must be registered with PalmSource, Inc
featureNum
: Feature number of the feature
valueP
: Value of the feature is returned here
FrmAlert( RomIncompatibleAlert );
alertId
: ID of the alert resource
FrmDispatchEvent( &event );
eventP
: Pointer to an event
FrmSetEventHandler( frm, MainFormHandleEvent );
formP
: Pointer to the form object (FormType structure)
handler
: Address of the form event handler function, FormEventHandlerType( )
FrmDispatchEvent( )
calls this handler whenever it receives an event for a specific form.
FrmSetEventHandler
must be called right after a form resource is loaded.
The callback routine it registers is the mechanism for dispatching events to an application.