XmChangeColor(Xm) 6 January 1993 XmChangeColor(Xm) Name XmChangeColor - recalculates all associated colors of a widget Syntax #include <Xm/Xm.h> void XmChangeColor (widget, background) Widget widget; Pixel background; Description XmChangeColor handles all color modifications for the specified widget when a new background pixel value is specified. The function recalcu- lates the foreground, select, and shadow colors based on the new back- ground color and sets the corresponding resources for the widget. If a color calculation procedure has been set by a call to XmSetColorCalcula- tion, XmChangeColor uses that procedure to calculate the new colors. Otherwise, the routine uses a default procedure. widget Specifies the widget ID whose colors will be updated pixel Specifies the background color pixel value See also XmGetColorCalculation(Xm), XmGetColors(Xm) and XmSetColorCalculation(Xm).