Scrollable Regions

  #include <vv_sr.h>
   
int sr_convert (SRPTR srp)

Converts the data displayed in the scrollable region and updates the data variables

int sr_curcol (SRPTR srp)

Returns the current data column in the scrollable region

void sr_curpos (int *data_rowp, int *data_colp, SRPTR srp)

Returns the current data row and data column in the scrollable region

int sr_currow (SRPTR srp)

Returns the current data row in the scrollable region

SRPTR sr_def (int wn_rb, int wn_cb, int rowq, int colq, UCHAR att, BORDERPTR bdrp, int datarowq, PTR structp, int struct_size, DFORMPTR dfmp)

Allocates and initializes a scrollable region

void sr_nextpos (int *data_rowp, int *data_colp, SRPTR srp)

Gets the next data row and data column for a scrollable region

void sr_rowblank (int data_row, SRPTR srp)

Displays blanks in all data fields in the specified data row of the scrollable region

int sr_rowdel (int data_row, SRPTR srp)

Deletes a data row in the scrollable region

int sr_rowins (int data_row, SRPTR srp)

Inserts a blank data row in the scrollable region

int sr_rowisaltered (SRPTR srp)

Determines if the data on the current row of a scrollable region has been altered

void sr_upd (int first_visrow, SRPTR srp)

Updates the data fields and background text in a scrollable region

void srf_blank (int data_row, int data_col, SRPTR srp)

Displays blanks in a specified field in the scrollable region

DFIELDPTR srf_def (int prompt_cb, UCHAR *prompt, int fld_cb, UCHAR *picp, int fld_type, PTR datap, SRPTR srp)

Defines a field on a scrollable region

int srf_get (PTR varp, int data_row, int data_col, SRPTR srp)

Gets the converted data from the specified field in the scrollable region

DFIELDPTR srf_ptr (int data_row, int data_col, SRPTR srp)

Returns a pointer to the specified field in the scrollable region

int srf_upd (PTR varp, int data_row, int data_col, SRPTR srp)

Updates the value displayed in the specified field in a scrollable region

void srf_updatt (UCHAR att, int data_row, int data_col, SRPTR srp)

Redisplays the specified field in the scrollable region with the specified video attribute



Home Contents Previous Next