Changing the Attribute of a Field

You can update the attribute shown in a data field, memo field, or field in a scrollable region with the following functions.

To update the attribute in a data or memo field, use the field update attribute function, fld_updatt():

void fld_updatt(att, fld_or_memop, dfmp)
 
UCHAR att;
/* Attribute to redisplay field with
*/
FIELDPTR fld_or_memop;
/* Pointer to field or memo to update
*/
DFORMPTR dfmp;
/* Form being processed
*/

To update the attribute in a field in a scrollable region, use the scrollable region field update attribute function, srf_updatt():

void srf_updatt(att, data_row, data_col, srp)
 
UCHAR att;
/* Attribute to redisplay field with
*/
int data_row;
/* Data row of scrollable region
*/
int data_col;
/* Data column of scrollable region
*/
SRPTR srp;
/* Scrollable region
*/


Home Contents Previous Next