Choice Lists

  #include <vv_clist.h>
   
int cl_curnum (CLISTPTR clistp)

Returns the number of the current item in the choice list

int cl_curtxt (UCHAR *bufstp, CLISTPTR clistp)

Copies the text of the current item to the specified buffer

CLISTPTR cl_def (int rb, int cb, int rowq, int colq, BORDERPTR bdrp, UCHAR *kwdp, MFILEPTR mfp)

Allocates and initializes a choice list

void cl_dn (CLISTPTR clistp)

Removes a choice list from the screen

void cl_free (CLISTPTR clistp)

Frees the memory associated with a choice list

int cl_itemq (CLISTPTR clistp)

Returns the number of items in a choice list

int cl_proc (int start_item, CLISTPTR clistp)

Displays the choice list, passes control to the user for selection, and removes choice list from the screen

int cl_rd (int start_item, CLISTPTR clistp)

Passes control to the user for selecting from the choice list

int cl_up (CLISTPTR clistp)

Displays a choice list on the screen

int cl_upd (CLISTPTR clistp)

Updates a choice list

void cli_check (UCHAR state, int row, CLISTPTR clistp)

Sets checkmarks for a multiple choice choice list

int cli_del (int item_num, CLISTPTR clistp)

Deletes the specified item from the choice list

UCHAR* cli_getcheck (CLISTPTR clistp)

Returns a pointer to text checked in a choice list

int cli_ins (UCHAR *stp, int item_num, CLISTPTR clistp)

Adds an item to the choice list

int cli_numtxt (UCHAR *bufstp, int item_num, CLISTPTR clistp)

Gets the text corresponding to the specified item in the choice list

int cli_rpl (UCHAR *stp, int item_num, CLISTPTR clistp)

Replaces the string for the specified item in the choice list

int cli_txtnum (UCHAR *stp, CLISTPTR clistp)

Returns the item number corresponding to the specified text in the choice list


Home Contents Previous Next