Changing Attributes for a Choice List

The current item is highlighted with the LCLACT logical attribute. All other items (i.e., inactive items) are displayed using LCLINACT. The inactive attribute is the same as the choice list window attribute.

To change one or both of the defaults, use the set choice list attributes function, scl_att():

void scl_att(active_att, inactive_att, clistp)

UCHAR active_att;        /* Active attribute            */

UCHAR inactive_att;    /* Inactive attribute            */

CLISTPTR clistp;        /* Pointer to choice list        */

Specify NOCHANGE for the active or inactive attribute if you do not want to change the attribute.

For example, to change the attributes for the shipping code choice list, call:

scl_att(LSYS, LHIGHLITE, fld_clistp(ship_fldp));


Home Contents Previous Next