


XmChangeColor(3X)					    XmChangeColor(3X)
OSF/Motif							    OSF/Motif



NAME
  XXmmCChhaannggeeCCoolloorr	- Recalculates all associated colors of	 a widget

SYNOPSIS


  ##iinncclluuddee <<XXmm//XXmm..hh>>
  vvooiidd XXmmCChhaannggeeCCoolloorr ((_w_i_d_g_e_t, _b_a_c_k_g_r_o_u_n_d))
       WWiiddggeett	 _w_i_d_g_e_t;;
       PPiixxeell	 _b_a_c_k_g_r_o_u_n_d;;

DESCRIPTION
  XXmmCChhaannggeeCCoolloorr	handles	all color modifications	for the	specified widget when
  a new	background pixel value is specified.  The function recalculates	the
  foreground, select, and shadow colors	based on the new background color and
  sets the corresponding resources for the widget.  If a color calculation
  procedure has	been set by a call to XXmmSSeettCCoolloorrCCaallccuullaattiioonn, XXmmCChhaannggeeCCoolloorr
  uses that procedure to calculate the new colors.  Otherwise, the routine
  uses a default procedure.

  _w_i_d_g_e_t Specifies the widget ID whose colors will be updated

  _p_i_x_e_l	 Specifies the background color	pixel value

RELATED	INFORMATION
  XXmmGGeettCCoolloorrCCaallccuullaattiioonn((33XX)), XXmmGGeettCCoolloorrss((33XX)), and XXmmSSeettCCoolloorrCCaallccuullaattiioonn((33XX)).
































