Home | History | Annotate | Download | only in libform

Lines Matching refs:form

35 #include "form.h"
39 * Post the form to the screen.
42 post_form(FORM *form)
46 if (form == NULL)
49 if (form->posted == 1)
52 if ((form->fields == NULL) || (form->fields[0] == NULL))
55 if (form->in_init == 1)
58 if (scale_form(form, &rows, &cols) != E_OK)
61 if ((form->scrwin != NULL) && ((rows > getmaxy(form->scrwin))
62 || (cols > getmaxx(form->scrwin)))) {
66 form->in_init = 1;
67 if (form->form_init != NULL)
68 form->form_init(form);
70 if (form->field_init != NULL)
71 form->field_init(form);
72 form->in_init = 0;
74 _formi_pos_first_field(form);
75 if ((status = _formi_draw_page(form)) != E_OK)
78 form->posted = 1;
79 pos_form_cursor(form);
85 * Unpost the form from the screen
88 unpost_form(FORM *form)
91 if (form == NULL)
94 if (form->posted != 1)
97 if (form->in_init == 1)
100 form->in_init = 1;
101 if (form->field_term != NULL)
102 form->field_term(form);
104 if (form->form_term != NULL)
105 form->form_term(form);
106 form->in_init = 0;
108 wclear(form->scrwin);
110 form->posted = 0;