Changing the Video Attributes of Menu Fields

Each menu field has associated with it an active, an inactive, and a skip logical video attribute. The active field attribute highlights the menu field that is the current field (that is, the cursor is in the field). The skip field attribute displays fields on the menu that the cursor cannot land in (that is, the field has the UNAVAILABLE option set ON). The inactive field attribute displays all other menu fields on the form.

When you define a field, the field uses default attributes of LMNINACT for the inactive attribute, LMNACT for the active attribute, and LMNUNAVAIL for the skip attribute. You can change these attributes to give visual cues to the user that a certain menu field is different from the others.

Designer: You can change field attributes in the Designer. See the Designer User's Guide for more information. You can also change the field attributes in your code, by calling sf_att(), described below.

Code: You can change field attributes at any time after you have defined the field with a call to mnf_def().

To change the active, inactive, and skip attributes associated with a menu field, use the set field attributes function, sf_att():

void sf_att(active_att, inactive_att, skip_att, fldp)
 
UCHAR active_att;
/* Logical attribute for active state
*/
UCHAR inactive_att;
/* Logical attribute for inactive state
*/
UCHAR skip_att;
/* Logical attribute for skip state
*/
UCHAR fldp
/* Pointer to field
*/

where active_att, inactive_att, and skip_att are the logical attributes to use and mfldp is the menu field for which to change the attributes. You can specify NOCHANGE for any attribute that you do not want to change.


Home Contents Previous Next