Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ form_init(3X) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

forms(3X)



form_hook(3X)                  DG/UX 5.4R3.00                  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:
       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).




Licensed material--property of copyright holder(s)                         1


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