Setting FORM Structure Members

  #include <vv_form.h>
#include <vv_cuabd.h>

sfm_cuabdr()

   
void sfm_begfp (int (*beg_fp) ( ), FORMPTR fmp)

Installs a begin-form function for the form

int sfm_cuabdr (int menuitems, UCHAR menuact_att, UCHAR menu_att, mm_buttons, UCHAR act_att, UCHAR inact_att, UCHAR *titlep, UCHAR title_att, DFORMPTR dfmp)

Adds a CUA border to a form

void sfm_endfp (int (*end_fp) ( ), FORMPTR fmp)

Installs an end-form function for the form

void sfm_help (UCHAR *help_stp_or_kwdp, FORMPTR fmp)

Sets the help string or section of the help memory file to be displayed when help is called for the form-level

void sfm_link (DFORMPTR prev_dfmp, DFORMPTR next_dfmp, DFORMPTR dfmp)

Links multiple data forms together for form paging

void sfm_mnretlevel (int retlevel, DFORMPTR dfmp)

Sets the number of menu levels to go up when the data form is called from a menu

void sfm_name (UCHAR *name_stp, FORMPTR fmp)

Assigns a name to a form

void sfm_nextitem (int item_num, FORMPTR fmp)

Sets the next item to move to on a form or sets an action code

void sfm_opt (long fm_opts, int state, DFORMPTR dfmp)

Turns options ON or OFF for the specified form

void sfm_vadjq (int horzq, int vertq, FORMPTR fmp)

Sets the limits on how much a virtual form should scroll to show the current field

void sfm_valfp (int (*val_fp), DFORMPTR dfmp)

Installs your own form validation function

void sfm_vscrlfp (int (*scrl_fp), FORMPTR fmp)

Installs a function to be called when a virtual form scrolls



Home Contents Previous Next