Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ form_hook(3x) — Atari System V 1.1-06

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

forms(3X)





   form_hook(3X)                                                 form_hook(3X)


   NAME
         formhook:  setforminit, forminit, setformterm, formterm,
         setfieldinit, fieldinit, setfieldterm, fieldterm - assign
         application-specific routines for invocation by forms

   SYNOPSIS
         #include <form.h>

         int setforminit(FORM *form, void (*func)(FORM *));
         void (*)(FORM *) forminit(FORM *form);
         int setformterm(FORM *form, void (*func)(FORM *));
         void (*)(FORM *) formterm(FORM *form);
         int setfieldinit(FORM *form, void (*func)(FORM *));
         void (*)(FORM *) fieldinit(FORM *form);
         int setfieldterm(FORM *form, void (*func)(FORM *));
         void (*)(FORM *) fieldterm(FORM *form);

   DESCRIPTION
         These routines allow the programmer to assign application specific
         routines to be executed automatically at initialization and
         termination points in the forms application.  The user need not
         specify any application-defined initialization or termination
         routines at all, but they may be helpful for displaying messages or
         page numbers and other chores.

         setforminit assigns an application-defined initialization function
         to be called when the form is posted and just after a page change.
         forminit returns a pointer to the initialization function, if any.

         setformterm assigns an application-defined function to be called
         when the form is unposted and just before a page change.  formterm
         returns a pointer to the function, if any.

         setfieldinit assigns an application-defined function to be called
         when the form is posted and just after the current field changes.
         fieldinit returns a pointer to the function, if any.

         setfieldterm assigns an application-defined function to be called
         when the form is unposted and just before the current field changes.
         fieldterm returns a pointer to the function, if any.

   RETURN VALUE
         Routines that return pointers always return NULL on error.  Routines
         that return an integer return one of the following:









   8/91                                                                 Page 1









   form_hook(3X)                                                 form_hook(3X)


         EOK           - The function returned successfully.
         ESYSTEMERROR - System error.

   NOTES
         The header file <form.h> automatically includes the header files
         <eti.h> and <curses.h>.

   SEE ALSO
         curses(3X), forms(3X).












































   Page 2                                                                 8/91





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026