|
|
Like the function menu_driver for the menu subsystem, function form_driver is the workhorse of the form system. Once the form is posted, the form driver handles all interaction with your end-user. The form driver responds to
SYNOPSIS
int form_driver (form, c) FORM form; int c;
As with menu processing, to enable the form driver to process your end-users' requests, you must write an input key virtualization routine. This routine defines a correspondence between input keys, control characters, and escape sequences on the one hand and ETI form requests on the other. The routine returns a specific form request or application command that the form driver can process. Upon return from the form driver, your application can check if the input was processed appropriately. If not, it can specify actions to be taken. These may include terminating interaction with the form, responding to help requests, generating an error message, and so on.